Skip to content

Commit

Permalink
fix: Add .npmrc update step
Browse files Browse the repository at this point in the history
  • Loading branch information
RayRedGoose committed Sep 26, 2023
1 parent 97bc570 commit 5eb7cc9
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/release-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,15 @@ jobs:
body: ${{steps.changeset.outputs.body}}
draft: false
prerelease: false

- name: Creating .npmrc
run: |
cat << EOF > "$HOME/.npmrc"
//registry.npmjs.org/:_authToken=$NPM_TOKEN
EOF
env:
NPM_TOKEN: ${{ secrets.NPM_CI_PUBLISH_TOKEN }}

# Publish to npm. Must be run after a build
- name: Publish
run: npx changeset publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_CI_PUBLISH_TOKEN}}
run: npx changeset publish

0 comments on commit 5eb7cc9

Please sign in to comment.