Skip to content

Commit

Permalink
chore: use PAT instead of gitHub.token for release so github pages is…
Browse files Browse the repository at this point in the history
… deployed (#1470)
  • Loading branch information
jeswr authored Jan 6, 2025
1 parent b053a9f commit 178fe91
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,5 +143,9 @@ jobs:
- name: Release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ github.token }}
# You may be tempted to make this github.token, this won't work
# because GH Actions does not trigger workflows INCLUDING GITHUB PAGES RELEASES on github.token
# to avoid recursive workflows.
# See: https://docs.github.com/en/actions/security-for-github-actions/security-guides/automatic-token-authentication#using-the-github_token-in-a-workflow
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: npx semantic-release

0 comments on commit 178fe91

Please sign in to comment.