Skip to content

Commit b5a813e

Browse files
authored
ci: fix release workflow permissions (#246)
1 parent c96c71d commit b5a813e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches:
66
- main
77

8+
permissions:
9+
contents: write
10+
811
jobs:
912
release:
1013
runs-on: ubuntu-latest
@@ -34,7 +37,7 @@ jobs:
3437
}
3538
}
3639
- env:
37-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
GITHUB_TOKEN: ${{ github.token }}
3841
run: if pnpm run should-semantic-release ; then pnpm release-it --verbose ; fi
3942
- if: always()
4043
name: Recreate branch protection on main

0 commit comments

Comments
 (0)