Skip to content

feat(monorepo-preview-release,preview-release): add publish_mode input#23

Merged
rqbazan merged 2 commits into
mainfrom
feat/publish-mode-input
Jul 5, 2026
Merged

feat(monorepo-preview-release,preview-release): add publish_mode input#23
rqbazan merged 2 commits into
mainfrom
feat/publish-mode-input

Conversation

@rqbazan

@rqbazan rqbazan commented Jul 5, 2026

Copy link
Copy Markdown
Member

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 set on the runner, which writes ~/.config/pnpm/auth.ini) no longer need to carry a .npmrc at 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_mode input to both actions to override detection explicitly:

- uses: variableland/gh-actions/actions/monorepo-preview-release@main
  with:
    github_token: ${{ secrets.GITHUB_TOKEN }}
    publish_mode: token-only

Accepted values: token-only | oidc-only | oidc-with-token-fallback (validated; unset keeps auto-detection). dist/ rebuilt with mise run build.

First consumer: variableland/backend#46, which drops its committed .npmrc in favor of pnpm config set in CI.

🤖 Generated with Claude Code

rqbazan and others added 2 commits July 5, 2026 12:26
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>
@rqbazan rqbazan merged commit 4f7f7a0 into main Jul 5, 2026
1 check passed
@rqbazan rqbazan deleted the feat/publish-mode-input branch July 5, 2026 17:29
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