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