From 984dff5a19e37feb1fcf593316198738e824ac1d Mon Sep 17 00:00:00 2001 From: Edgars Date: Wed, 6 May 2026 15:21:51 +0100 Subject: [PATCH] ci: revert publish env name to `npm` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reverts the `npm` → `Publish` rename from #168. The release workflow on `main` failed at the env protection step (custom branch policy typo `mian` blocked deployment), so we never reached `npm publish`, but the npm trusted publisher config for this package likely pins the `environment` claim to `npm` (same as cli) — renaming the env would also have broken OIDC auth. Reverting the env name in the workflow restores the previous claim shape. The recreated `npm` environment in this repo must hold `PUBLISH_CI_APP_CLIENT_ID` (variable) and `PUBLISH_CI_APP_KEY` (secret) for the App-token swap from #168 to keep working, and the deployment branch policy must be `main` (not `mian`). --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 359ba26..80decf4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -13,7 +13,7 @@ permissions: jobs: release: runs-on: ubuntu-latest - environment: Publish + environment: npm steps: - name: Get CI Bot Token uses: actions/create-github-app-token@v3