feat(npm): add support for staged publishing with pnpm by luxass · Pull Request #44 · luxass/shared-workflows · GitHub
Skip to content

feat(npm): add support for staged publishing with pnpm - #44

Merged
luxass merged 2 commits into
mainfrom
stage-publish
Jun 2, 2026
Merged

luxass merged 2 commits into
mainfrom
stage-publish

Conversation

@luxass

@luxass luxass commented Jun 2, 2026 •

Copy link
Copy Markdown
Owner

Introduce a new input stage to enable pnpm stage publish for npm's staged publishing workflow. This allows for verification of release artifacts before final approval to the live registry.

Summary by CodeRabbit

  • New Features
    • Release workflow now supports staged npm package publishing. A new configuration option enables publishing to a staging environment before proceeding with a full release, providing additional safety and testing opportunities.

Introduce a new input `stage` to enable `pnpm stage publish` for npm's staged publishing workflow. This allows for verification of release artifacts before final approval to the live registry.
@coderabbitai

coderabbitai Bot commented Jun 2, 2026 •

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/reusable-release-npm.yaml:
- Around line 108-115: Update the "publish to npm (staging)" step that runs
`pnpm stage publish` to either document required versions or pin the setup
action: add a note in .github/workflows/reusable-release-npm.md stating that
`pnpm stage publish` requires pnpm >= 11.3.0 and that npm staged publishing
requires Node.js >= 22.14.0 and npm CLI >= 11.15.0, or modify the workflow's
`setup pnpm` step to pin `pnpm/action-setup` to a version >= 11.3.0 so the `pnpm
stage publish` command (used in the "publish to npm (staging)" step) will be
available at runtime.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: d047cf5f-af03-4dad-9fe1-3f8b57f5dfdf

📥 Commits

Reviewing files that changed from the base of the PR and between 495f642 and 913df7c.

📒 Files selected for processing (2)
  • .github/workflows/reusable-release-npm.md
  • .github/workflows/reusable-release-npm.yaml

Comment thread .github/workflows/reusable-release-npm.yaml
Added version requirements for `pnpm` and `Node.js` to support npm's staged publishing workflow. This includes specifying the minimum versions needed for `pnpm stage publish` and `npm CLI`.
@luxass
luxass merged commit f070798 into main Jun 2, 2026
4 checks passed
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