From 91fe9ce44d212473eecb19191999ff03ffceb355 Mon Sep 17 00:00:00 2001 From: Florian Symanowski Date: Fri, 13 Sep 2024 13:42:07 +0200 Subject: [PATCH] Move permissions to publish job --- .github/workflows/npm-publish.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 91ebcb5..91c26af 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -7,9 +7,6 @@ on: jobs: build: runs-on: ubuntu-latest - permissions: - contents: read - id-token: write steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 @@ -22,6 +19,9 @@ jobs: publish-npm: needs: build runs-on: ubuntu-latest + permissions: + contents: read + id-token: write steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4