ci: use OIDC for prerelease tag cleanup - #392
Draft
michelchau wants to merge 1 commit into
Draft
michelchau wants to merge 1 commit into
michelchau wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The publish workflow's prerelease deprecation steps use
NPM_TOKENand return npm 403 errors, while OIDC publishing succeeds. This change removes the workflow's dependency on that token. npm does not support OIDC fornpm deprecate, so superseded canary and PR versions will remain installable without being automatically marked deprecated.The prerelease job installs npm 11.21.0, which supports OIDC for
npm dist-tag. Closing a PR removes itspr-Ntag through OIDC. A missing tag is a no-op; registry lookup or tag-removal errors fail the cleanup job. Publishing continues to advance the canary and PR tags as before.Before merging: enable Allow npm dist-tag for the
prismicio/cli/publish.ymltrusted publisher in theprismicpackage's npm settings. This permission is independent of publishing and is disabled by default. The requirement and the deprecation behavior are documented inCONTRIBUTING.md.References: failing cleanup run, npm OIDC tag support.
Validation:
E2E_PRISMIC_EMAILis unavailable locally; it also requiresE2E_PRISMIC_PASSWORD.