Skip to content

Commit 88525cf

Browse files
committed
Build: ensuring we persist github credentials after checkout
1 parent d8105f3 commit 88525cf

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,20 +34,13 @@ jobs:
3434
needs: [test]
3535
name: Publish NPM Package
3636
runs-on: ubuntu-latest
37-
env:
38-
GIT_AUTHOR_NAME: 'im-pipeline-bot'
39-
GIT_AUTHOR_EMAIL: '[email protected]'
40-
GIT_COMMITTER_NAME: 'im-pipeline-bot'
41-
GIT_COMMITTER_EMAIL: '[email protected]'
42-
GITHUB_TOKEN: ${{ secrets.PIPELINE_BOT_PAT }}
43-
GH_TOKEN: ${{ secrets.PIPELINE_BOT_PAT }}
44-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4537
steps:
4638
- name: Checkout
4739
uses: actions/checkout@v3
4840
with:
4941
token: ${{ secrets.PIPELINE_BOT_PAT }}
50-
depth: 0
42+
fetch-depth: 0
43+
persist-credentials: true
5144

5245
- name: Setup Node
5346
uses: actions/setup-node@v3
@@ -59,4 +52,12 @@ jobs:
5952
run: npm ci
6053

6154
- name: Semantic Release
55+
env:
56+
GIT_AUTHOR_NAME: 'im-pipeline-bot'
57+
GIT_AUTHOR_EMAIL: '[email protected]'
58+
GIT_COMMITTER_NAME: 'im-pipeline-bot'
59+
GIT_COMMITTER_EMAIL: '[email protected]'
60+
GITHUB_TOKEN: ${{ secrets.PIPELINE_BOT_PAT }}
61+
GH_TOKEN: ${{ secrets.PIPELINE_BOT_PAT }}
62+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
6263
run: npx semantic-release

0 commit comments

Comments
 (0)