From 7c0e8cb90d28fca6b85146413ceaf925af8483e1 Mon Sep 17 00:00:00 2001 From: Pascal Jufer Date: Wed, 29 Mar 2023 01:23:03 +0200 Subject: [PATCH] Fix release workflow (#408) - 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