Skip to content

Commit bcaa89a

Browse files
committed
chore: use PAT on checkout for release workflows
1 parent df481b3 commit bcaa89a

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.github/workflows/rc-release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v2
1616
with:
17+
token: ${{ secrets.VERSION_BUMP_TOKEN }}
1718
# pulls all commits (needed for semantic release to correctly version)
1819
fetch-depth: '0'
1920
# pulls all tags (needed for semantic release to correctly version)
@@ -37,8 +38,6 @@ jobs:
3738
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
3839
GH_TOKEN: ${{ secrets.VERSION_BUMP_TOKEN }}
3940
- name: Merge back changes
40-
env:
41-
GH_TOKEN: ${{ secrets.VERSION_BUMP_TOKEN }}
4241
run: |
4342
git stash
4443
git checkout develop

.github/workflows/release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v2
1414
with:
15+
token: ${{ secrets.VERSION_BUMP_TOKEN }}
1516
# pulls all commits (needed for semantic release to correctly version)
1617
fetch-depth: '0'
1718
# pulls all tags (needed for semantic release to correctly version)
@@ -35,8 +36,6 @@ jobs:
3536
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
3637
GH_TOKEN: ${{ secrets.VERSION_BUMP_TOKEN }}
3738
- name: Merge back changes
38-
env:
39-
GH_TOKEN: ${{ secrets.VERSION_BUMP_TOKEN }}
4039
run: |
4140
git stash
4241
git checkout develop

0 commit comments

Comments
 (0)