Skip to content

Commit 3dc3852

Browse files
committed
Switch to using PAT
1 parent 1354afa commit 3dc3852

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ jobs:
1111
steps:
1212
- name: Checkout code
1313
uses: actions/checkout@v2
14+
with:
15+
fetch-depth: 0
16+
persist-credentials: false
1417
- name: Get node version
1518
id: node
1619
run: echo "##[set-output name=VERSION;]$(cat .nvmrc)"
@@ -32,5 +35,5 @@ jobs:
3235
if: github.ref == 'refs/heads/main' # run on only main
3336
run: npx semantic-release
3437
env:
35-
GITHUB_TOKEN: ${{github.token}}
38+
GITHUB_TOKEN: ${{secrets.SEMANTIC_RELEASE_TOKEN}}
3639
NPM_TOKEN: ${{secrets.NPM_TOKEN}}

0 commit comments

Comments
 (0)