From a8a519290a941388d26d16f1823d4e33dc210a78 Mon Sep 17 00:00:00 2001 From: martincupela Date: Tue, 17 Nov 2026 10:22:08 +0100 Subject: [PATCH] chore(ci): run releases in the npm-release environment The release job runs in the npm-release environment, which only main and release-v* may use and which needs a reviewer's approval. Once the npm trusted publisher requires this environment, a release.yml run from any other branch can no longer publish. --- .github/workflows/release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2df9808..d45be76 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,6 +17,8 @@ jobs: package_release: name: Release from "${{ github.ref_name }}" branch runs-on: ubuntu-latest + # Only main and release-v* may use this environment, and the npm trusted publisher requires it. + environment: npm-release steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4