From f29eda81abd8d38bec4a9de1d8fdc6313e0624cb Mon Sep 17 00:00:00 2001 From: "Miguel A. Calles MBA" <44813512+miguel-a-calles-mba@users.noreply.github.com> Date: Mon, 20 Apr 2020 12:33:21 -0700 Subject: [PATCH 1/3] Create npmpublish.yml --- .github/workflows/npmpublish.yml | 49 ++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/npmpublish.yml diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml new file mode 100644 index 000000000..619b7dbce --- /dev/null +++ b/.github/workflows/npmpublish.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: npm ci + - run: npm run build:docs + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{secrets.npm_token}} + +# Disable GPR +# 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: npm ci +# - run: npm publish +# env: +# NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} From 5b1ccbde1743fa860529ade60ca307919ffb602b Mon Sep 17 00:00:00 2001 From: "Miguel A. Calles MBA" <44813512+miguel-a-calles-mba@users.noreply.github.com> Date: Mon, 20 Apr 2020 16:20:33 -0700 Subject: [PATCH 2/3] Update npmpublish.yml --- .github/workflows/npmpublish.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml index 619b7dbce..862daf51f 100644 --- a/.github/workflows/npmpublish.yml +++ b/.github/workflows/npmpublish.yml @@ -28,7 +28,6 @@ jobs: node-version: 12 registry-url: https://registry.npmjs.org/ - run: npm ci - - run: npm run build:docs - run: npm publish env: NODE_AUTH_TOKEN: ${{secrets.npm_token}} From 1f49ec837dab6affc7a75e5e11d54c2baad9f7a1 Mon Sep 17 00:00:00 2001 From: "Miguel A. Calles MBA" <44813512+miguel-a-calles-mba@users.noreply.github.com> Date: Fri, 24 Apr 2020 16:07:44 -0700 Subject: [PATCH 3/3] Updated npm secret --- .github/workflows/npmpublish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml index 862daf51f..dcfef74d6 100644 --- a/.github/workflows/npmpublish.yml +++ b/.github/workflows/npmpublish.yml @@ -30,7 +30,7 @@ jobs: - run: npm ci - run: npm publish env: - NODE_AUTH_TOKEN: ${{secrets.npm_token}} + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} # Disable GPR # publish-gpr: