From b349571b1b845b9d2a023b8b6f509720464107e6 Mon Sep 17 00:00:00 2001 From: Anshul Goyal <32068075+anshulrgoyal@users.noreply.github.com> Date: Sun, 5 Jul 2020 16:55:43 +0530 Subject: [PATCH 1/2] Create npm-publish.yml --- .github/workflows/npm-publish.yml | 49 +++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/npm-publish.yml diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml new file mode 100644 index 0000000..56bf998 --- /dev/null +++ b/.github/workflows/npm-publish.yml @@ -0,0 +1,49 @@ +# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created +# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages + +name: Node.js Package + +on: + release: + types: [created] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 12 + - run: npm ci + - run: npm test + + publish-npm: + needs: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 12 + registry-url: https://registry.npmjs.org/ + - run: yarn + - run: yarn build + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + + publish-gpr: + needs: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 12 + registry-url: https://npm.pkg.github.com/ + - run: yarn + - run: yarn build + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} From 33f5d320e83d8b5519c02a840977f34104cc861c Mon Sep 17 00:00:00 2001 From: Anshul Goyal <32068075+anshulrgoyal@users.noreply.github.com> Date: Sun, 5 Jul 2020 16:58:44 +0530 Subject: [PATCH 2/2] Update whitelist.txt --- .github/actions/spell-check/whitelist/whitelist.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/actions/spell-check/whitelist/whitelist.txt b/.github/actions/spell-check/whitelist/whitelist.txt index 0603cb8..ae30de9 100644 --- a/.github/actions/spell-check/whitelist/whitelist.txt +++ b/.github/actions/spell-check/whitelist/whitelist.txt @@ -559,6 +559,7 @@ funroll funsafe fwrite gah +gpr gainsboro gaussian gb @@ -986,6 +987,7 @@ nathanaeljones navajowhite nbsp nc +npmjs ncpu ncubic ncubicsharp