Skip to content

Commit 5a7ac65

Browse files
authored
fix: fixed failing release workflow
1 parent 17371a0 commit 5a7ac65

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,16 @@ on:
1616
jobs:
1717
release:
1818
runs-on: ubuntu-latest
19+
20+
env:
21+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
22+
PUSH_TOKEN: ${{ secrets.PUSH_TOKEN }}
23+
1924
steps:
2025
- uses: actions/checkout@v4
2126
with:
22-
ref: "main"
2327
fetch-depth: 0
28+
token: ${{ env.PUSH_TOKEN }}
2429

2530
- name: Import GPG key
2631
uses: crazy-max/ghaction-import-gpg@v6
@@ -47,6 +52,3 @@ jobs:
4752

4853
- name: Release
4954
run: npm run release.${{ github.event.inputs.releaseType }}
50-
env:
51-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
52-
PUSH_TOKEN: ${{ secrets.PUSH_TOKEN }}

0 commit comments

Comments
 (0)