Skip to content

Commit

Permalink
use NODE_AUTH_TOKEN for CI
Browse files Browse the repository at this point in the history
This token is used by `setup-node` for publishing.

Additionally, the tag created by changesets is pushed back to the repo.
  • Loading branch information
mayank99 committed Mar 12, 2024
1 parent 19ec439 commit e9496a3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/changeset-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20.x
registry-url: 'https://registry.npmjs.org'

- run: pnpm install

Expand Down Expand Up @@ -69,7 +70,9 @@ jobs:

- name: Publish to npm (if not already published)
if: steps.changesets_files.outputs.exists != 'true'
run: pnpm release
run: |
pnpm release
git push origin --tags
env:
GITHUB_TOKEN: ${{ secrets.IMJS_ADMIN_GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPMJS_PUBLISH_ITWIN }}
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_PUBLISH_ITWIN }}

0 comments on commit e9496a3

Please sign in to comment.