Skip to content

Commit

Permalink
ci: update Actions workflow for publishing Changeset releases to npm …
Browse files Browse the repository at this point in the history
…correctly
  • Loading branch information
iiroj committed Oct 14, 2023
1 parent 59ff2ef commit 3949492
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/push.yml
Expand Up @@ -164,6 +164,9 @@ jobs:
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v3
with:
# This is a PAT token that allows triggering of new Actions when 🦋 Changeset pushes a git tag
token: ${{ secrets.CHANGESET_RELEASE_TOKEN }}
- uses: actions/setup-node@v3
with:
node-version: 20
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/tag.yml
Expand Up @@ -17,6 +17,7 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 20
registry-url: https://registry.npmjs.org
- run: npm publish --access public
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 3949492

Please sign in to comment.