From b3347281dff46b7c0d6164883ecaa4b69cac1881 Mon Sep 17 00:00:00 2001 From: Pascal Jufer Date: Wed, 29 Mar 2023 01:20:12 +0200 Subject: [PATCH] Fix release workflow - Obtain required permission to create GH release - Ignore detached head for 'pnpm publish' --- .github/workflows/release.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 684b1913..e2126271 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,6 +5,9 @@ on: tags: - 'v*' +permissions: + contents: write + jobs: gh-release: name: Create GitHub Release @@ -40,4 +43,4 @@ jobs: - name: Publish to NPM env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - run: pnpm publish + run: pnpm publish --no-git-checks