Skip to content

Commit 7c0e8cb

Browse files
authored
Fix release workflow (#408)
- Obtain required permission to create GH release - Ignore detached head for 'pnpm publish'
1 parent 5115c43 commit 7c0e8cb

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
tags:
66
- 'v*'
77

8+
permissions:
9+
contents: write
10+
811
jobs:
912
gh-release:
1013
name: Create GitHub Release
@@ -40,4 +43,4 @@ jobs:
4043
- name: Publish to NPM
4144
env:
4245
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
43-
run: pnpm publish
46+
run: pnpm publish --no-git-checks

0 commit comments

Comments
 (0)