Skip to content

Commit b9c268e

Browse files
committed
set permission to allow GITHUB_TOKEN to be used to publish release
1 parent ef1fb6e commit b9c268e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
name: Release
22
on:
33
push:
4-
branches:
5-
- main
4+
branches: [main]
5+
permissions:
6+
contents: write
67
jobs:
78
activate:
89
runs-on: ubuntu-latest
@@ -25,5 +26,5 @@ jobs:
2526
run: npm ci
2627
- name: Tag and release
2728
env:
28-
GITHUB_API_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
29+
GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2930
run: npx gulp release

0 commit comments

Comments
 (0)