From 71d9fbb37509fce215dbfeef5ff24da3b9f27ab3 Mon Sep 17 00:00:00 2001 From: Gregor Martynus <39992+gr2m@users.noreply.github.com> Date: Sat, 21 Mar 2026 10:31:14 -0700 Subject: [PATCH] ci(release): add permissions for OIDC and npm provenance Add id-token, contents, pull-requests, and issues permissions. Remove NPM_TOKEN in favor of trusted publishing via OIDC. Update actions/checkout and actions/setup-node to v4. --- .github/workflows/release.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e85361b..8237eae 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,13 +6,19 @@ name: Release - main - next - beta +permissions: + id-token: write # to enable use of OIDC for trusted publishing and npm provenance + contents: write # tags and releases + pull-requests: write # comments + issues: write # comments + jobs: release: name: release runs-on: ubuntu-latest steps: - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5 - - uses: actions/setup-node@v6 + - uses: actions/setup-node@v4 with: node-version: lts/* cache: npm @@ -20,4 +26,3 @@ jobs: - run: npx semantic-release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }}