Add automated npm publish workflow with release-please #132
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.
This PR implements an automated npm publishing workflow using @googleapis/release-please to streamline the release process for oxc-walker.
Overview
The new workflow replaces the current manual release process (
bumpp && pnpm publish
) with a fully automated system that:Implementation Details
Release Please Workflow (
.github/workflows/release-please.yml
)main
branch@googleapis/release-please-action@v4
configured for Node.js projectspackage.json
and generatedCHANGELOG.md
Publish Workflow (
.github/workflows/publish.yml
)v*
) are created (when release PRs are merged)pnpm publish
Benefits
Setup Requirements
To enable the workflow, repository administrators need to:
NPM_TOKEN
secret containing an npm authentication token with publish permissionsBackward Compatibility
This change is fully backward compatible:
pnpm run release
script continues to work for emergency releasesThe workflow integrates seamlessly with the existing pnpm + TypeScript + vitest setup and maintains all current quality checks.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.