Skip to content

Commit 112301a

Browse files
authored
fix: gh token for releasing package (#11)
1 parent 52c3026 commit 112301a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ on:
33
branches:
44
- main
55
workflow_dispatch:
6+
7+
permissions:
8+
contents: write
9+
packages: write
10+
pull-requests: write
11+
issues: write
612

713
name: Release
814
jobs:
@@ -25,15 +31,9 @@ jobs:
2531
run: yarn install --frozen-lockfile
2632
- name: Build
2733
run: yarn build
28-
- name: Request GitHub token
29-
id: get_workflow_token
30-
uses: peter-murray/[email protected]
31-
with:
32-
application_id: ${{ secrets.APP_ID }}
33-
application_private_key: ${{ secrets.APPLICATION_PRIVATE_KEY }}
3434
- name: Release
3535
env:
36-
GITHUB_TOKEN: ${{ steps.get_workflow_token.outputs.token }}
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3737
NPM_TOKEN: ${{ secrets.NPMJS_ACCESS_TOKEN }}
3838
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_ACCESS_TOKEN }}
3939
run: yarn release

0 commit comments

Comments
 (0)