Skip to content

ci: gate npm publish with an environment#119

Open
JoviDeCroock wants to merge 1 commit into
mainfrom
ci/oidc-env-gated-publish
Open

ci: gate npm publish with an environment#119
JoviDeCroock wants to merge 1 commit into
mainfrom
ci/oidc-env-gated-publish

Conversation

@JoviDeCroock

Copy link
Copy Markdown
Member

Summary

  • split the release workflow into a release job and an environment-gated publish job
  • move id-token: write onto the gated publish path instead of the release PR path
  • add an unpublished-package check so stable publishes only run when the current package versions are not already on npm
  • keep the prerelease/canary path separate where the repo already had one

Why

  • matches the OIDC + environment-gated publishing pattern used in preactjs/signals and preactjs/preset-vite
  • reduces the permissions carried by the release PR job
  • makes the stable npm publish path explicit and reviewable

Verification

  • parsed the workflow YAML locally
  • ran the unpublished-package helper locally against the repo

@changeset-bot

changeset-bot Bot commented May 16, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: eefe6f4

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

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