From 3db0ba784557dc972954794e047065354515537c Mon Sep 17 00:00:00 2001 From: martincupela Date: Tue, 17 Nov 2026 10:22:14 +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 fd815cbc..0549965f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,6 +11,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@v3 - uses: actions/setup-node@v3