Skip to content

Commit

Permalink
- Added NPM Login before the build stage
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidArayan committed Nov 22, 2023
1 parent 59d42e2 commit 109c7e1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 109c7e1

Please sign in to comment.