Skip to content

chore(ci): run releases in the npm-release environment - #366

Merged
MartinCupela merged 1 commit into
mainfrom
chore/release-environment
Nov 17, 2026
Merged

MartinCupela merged 1 commit into
mainfrom
chore/release-environment

Conversation

@MartinCupela

@MartinCupela MartinCupela commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

This PR runs the release job in the npm-release environment. The environment already exists and is set up as follows:

  • Branches: main and release-v* only.
  • Required reviewers: MartinCupela, oliverlaz, NikolaGoranNaumovski, with self-review blocked and no admin bypass.

What changes for releases

  • Every release run waits for one of the reviewers to approve it. Whoever starts the run can't approve it themselves.
  • Dry runs also go through the environment. They have to start from main or release-v* and need approval too. A run from any other branch fails before it starts.

After merge

On npmjs.com, set Settings → Trusted Publisher → Environment to npm-release for @stream-io/stream-chat-css. From then on npm rejects OIDC tokens from runs outside the environment. Do this only after the same change is merged on main, release-v4 and release-v3.

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.
@MartinCupela
MartinCupela merged commit f7aed50 into main Nov 17, 2026
4 checks passed
@MartinCupela
MartinCupela deleted the chore/release-environment branch November 17, 2026 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant