From 109c7e12aa8b64be4376dd41e9a79ee83eabe46a Mon Sep 17 00:00:00 2001 From: David Arayan Date: Wed, 22 Nov 2023 11:40:30 +1100 Subject: [PATCH] - Added NPM Login before the build stage --- .github/workflows/publish.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 453f7d1..c444a64 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -12,8 +12,6 @@ jobs: run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV - name: print version number run: echo ${{ env.RELEASE_VERSION }} - env: - NPM_TOKEN: ${{ secrets.NPM_PUBLISH_KEY }} - uses: actions/setup-node@v3 with: node-version: 18 @@ -29,8 +27,8 @@ jobs: run: cp README.md sdk-core/README.md - name: copy graphics run: cp -R graphics sdk-core/ - - name: NPM Build - run: npm run --prefix sdk-core clean:build + - name: NPM Login & Build + run: rm -rf sdk-core/.npmrc && npm set "//registry.npmjs.org/:_authToken" ${{ secrets.NPM_PUBLISH_KEY }} && npm run --prefix sdk-core clean:build - uses: JS-DevTools/npm-publish@v1 with: package: ./sdk-core/package.json