feat(monorepo-preview-release,preview-release): add publish_mode input#23
Merged
Conversation
Publish mode was inferred from the presence of a project .npmrc, but pnpm 11 pushes credentials out of repo-controlled files, so repos that authenticate via user-level config (e.g. pnpm config set in CI) no longer carry one. The new optional input overrides detection: token-only | oidc-only | oidc-with-token-fallback. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
Summary
Publish mode is inferred from the presence of a project
.npmrc(detectMode), but pnpm 11 pushes credentials out of repo-controlled files: repos that authenticate through user-level config (e.g.pnpm config seton the runner, which writes~/.config/pnpm/auth.ini) no longer need to carry a.npmrcat all — and deleting it silently flips the action into OIDC/provenance flows that registries like Google Artifact Registry don't support.Adds an optional
publish_modeinput to both actions to override detection explicitly:Accepted values:
token-only | oidc-only | oidc-with-token-fallback(validated; unset keeps auto-detection).dist/rebuilt withmise run build.First consumer: variableland/backend#46, which drops its committed
.npmrcin favor ofpnpm config setin CI.🤖 Generated with Claude Code