From 2a4b1e961d47bc1dc9fc1e2dad76b976303f0ee8 Mon Sep 17 00:00:00 2001 From: Gary Chisholm Date: Tue, 11 Oct 2022 10:10:21 +1100 Subject: [PATCH 1/4] [patch] remove `.github` from npm pack --- .npmignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.npmignore b/.npmignore index e15babc..f334ca6 100644 --- a/.npmignore +++ b/.npmignore @@ -5,3 +5,4 @@ src .eslintignore .gitignore stuff +.github From 03dd5da6f0bce915bad88d88f158d7a6d3fa7024 Mon Sep 17 00:00:00 2001 From: Gary Chisholm Date: Tue, 11 Oct 2022 10:11:44 +1100 Subject: [PATCH 2/4] [minor] include logo in npm package --- .npmignore | 1 - 1 file changed, 1 deletion(-) diff --git a/.npmignore b/.npmignore index f334ca6..700ba77 100644 --- a/.npmignore +++ b/.npmignore @@ -4,5 +4,4 @@ src .eslintrc .eslintignore .gitignore -stuff .github From 410ee6e1096a14cd38cf875cd03cebf785094b5d Mon Sep 17 00:00:00 2001 From: omgaz Date: Tue, 11 Oct 2022 10:22:57 +1100 Subject: [PATCH 3/4] [minor] update github actions for codeql and lint --- .github/workflows/codeql-analysis.yml | 58 +++++++++++++-------------- .github/workflows/node.js.yml | 23 ++++------- 2 files changed, 37 insertions(+), 44 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index d61401e..9826eed 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -13,12 +13,12 @@ name: "CodeQL" on: push: - branches: [ master ] + branches: [master] pull_request: # The branches below must be a subset of the branches above - branches: [ master ] + branches: [master] schedule: - - cron: '44 16 1-7 * 6' + - cron: "44 16 1-7 * 6" jobs: analyze: @@ -32,40 +32,40 @@ jobs: strategy: fail-fast: false matrix: - language: [ 'javascript' ] + language: ["javascript"] # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ] # Learn more: # https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed steps: - - name: Checkout repository - uses: actions/checkout@v2 + - name: Checkout repository + uses: actions/checkout@v3 - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v1 - with: - languages: ${{ matrix.language }} - # If you wish to specify custom queries, you can do so here or in a config file. - # By default, queries listed here will override any specified in a config file. - # Prefix the list here with "+" to use these queries and those in the config file. - # queries: ./path/to/local/query, your-org/your-repo/queries@main + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: ${{ matrix.language }} + # If you wish to specify custom queries, you can do so here or in a config file. + # By default, queries listed here will override any specified in a config file. + # Prefix the list here with "+" to use these queries and those in the config file. + # queries: ./path/to/local/query, your-org/your-repo/queries@main - # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). - # If this step fails, then you should remove it and run the build manually (see below) - - name: Autobuild - uses: github/codeql-action/autobuild@v1 + # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). + # If this step fails, then you should remove it and run the build manually (see below) + - name: Autobuild + uses: github/codeql-action/autobuild@v2 - # ℹī¸ Command-line programs to run using the OS shell. - # 📚 https://git.io/JvXDl + # ℹī¸ Command-line programs to run using the OS shell. + # 📚 https://git.io/JvXDl - # ✏ī¸ If the Autobuild fails above, remove it and uncomment the following three lines - # and modify them (or add more) to build your code if your project - # uses a compiled language + # ✏ī¸ If the Autobuild fails above, remove it and uncomment the following three lines + # and modify them (or add more) to build your code if your project + # uses a compiled language - #- run: | - # make bootstrap - # make release + #- run: | + # make bootstrap + # make release - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 67142d1..4a71cfe 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -1,5 +1,4 @@ -# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions +# This workflow will do a clean install of node dependencies, build the source code and lints name: Lint @@ -7,19 +6,13 @@ on: [pull_request] jobs: lint: - runs-on: ubuntu-latest - strategy: - matrix: - node-version: [10.x, 12.x, 14.x, 15.x] - # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ - steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - run: npm ci - - run: npm run lint + - uses: actions/checkout@v3 + - name: Use Node.js 16.x + uses: actions/setup-node@v3 + with: + node-version: "16.x" + - run: npm ci --no-optional + - run: npm run lint From b5fc74258868d8a7c221f85b4b21d4fe2b36f325 Mon Sep 17 00:00:00 2001 From: Gary Chisholm Date: Tue, 11 Oct 2022 10:29:00 +1100 Subject: [PATCH 4/4] Update .github/workflows/codeql-analysis.yml --- .github/workflows/codeql-analysis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 9826eed..99d59d8 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -18,6 +18,7 @@ on: # The branches below must be a subset of the branches above branches: [master] schedule: + # Runs Saturdays at 4:44 pm - cron: "44 16 1-7 * 6" jobs: