Skip to content

Commit

Permalink
fix: do not persist credentials after checkout in js release step (#87)
Browse files Browse the repository at this point in the history
If we don't set this to not persist credentials, semantic release will not set the github token and releases fail in repos that have branch protection turned on.

Refs:
- semantic-release/git#196 (comment)
- semantic-release/git#196 (comment)
  • Loading branch information
achingbrain authored Sep 17, 2024
1 parent 4a16610 commit bcdbc91
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/js-test-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version: lts/*
Expand Down

0 comments on commit bcdbc91

Please sign in to comment.