Skip to content

Commit

Permalink
Use personal access token to invoke changesets
Browse files Browse the repository at this point in the history
- allows the release workflow to invoke other workflows
  • Loading branch information
ddaspit committed Nov 27, 2024
1 parent d7b4bf2 commit 523aba0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.CHANGESETS_GITHUB_TOKEN }}

- name: Setup Node.js
uses: volta-cli/action@v4
Expand All @@ -26,6 +29,7 @@ jobs:
uses: changesets/action@v1
with:
publish: npm release
setupGitUser: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.CHANGESETS_GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 523aba0

Please sign in to comment.