Skip to content

Commit

Permalink
ci: fix release credentials workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
Eli Skeggs committed Aug 5, 2020
1 parent 3a5c301 commit da5f2fa
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ jobs:
# For commitlint; ideally this would only check out the feature branch's history, but
# that's not currently an option.
fetch-depth: ${{ github.event_name == 'push' }}
# Necessary to prevent the checkout action from writing credentials to .git/config, which
# semantic-release attempts to use to push despite those credentials being denied the
# push.
# See https://github.com/semantic-release/git/issues/196#issuecomment-601310576.
persist-credentials: false
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
Expand All @@ -43,6 +38,12 @@ jobs:

steps:
- uses: actions/checkout@v2
with:
# Necessary to prevent the checkout action from writing credentials to .git/config, which
# semantic-release attempts to use to push despite those credentials being denied the
# push.
# See https://github.com/semantic-release/git/issues/196#issuecomment-601310576.
persist-credentials: false
- name: Use Node.js 14.x
uses: actions/setup-node@v1
with:
Expand Down

0 comments on commit da5f2fa

Please sign in to comment.