From b9c268ec5f384b920e32666d311d6fe76de887aa Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Thu, 16 May 2024 12:23:54 -0600 Subject: [PATCH] set permission to allow GITHUB_TOKEN to be used to publish release --- .github/workflows/release.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 39b4eda..1c88d46 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,8 +1,9 @@ name: Release on: push: - branches: - - main + branches: [main] +permissions: + contents: write jobs: activate: runs-on: ubuntu-latest @@ -25,5 +26,5 @@ jobs: run: npm ci - name: Tag and release env: - GITHUB_API_TOKEN: ${{ secrets.PUBLISH_TOKEN }} + GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: npx gulp release