docs(release): 🚀 automate npm publishing via GitHub Actions - #49
Merged
Conversation
- Add guarded npm publish and GitHub Release workflow - Run runtime smoke checks before publishing - Align release documentation with trusted publishing
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Pull request overview
Automates npm publishing and GitHub Release creation for prettier-plugin-go-template by introducing a guarded GitHub Actions workflow that runs release validations and then publishes/tags/releases once a version bump lands on main.
Changes:
- Adds a
Publish Releaseworkflow to validate, publish to npm (OIDC trusted publishing), tag, and create a GitHub Release. - Updates publishing documentation to reflect automated release flow and guardrails.
- Updates
AGENTS.mdto clarifyrelease:pluginis legacy and point to the workflow.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| docs/develop/publishing.md | Updates release/publishing instructions to reflect GitHub Actions-based publishing and tagging. |
| AGENTS.md | Aligns project agent guidance with the new automated publishing workflow and legacy script usage. |
| .github/workflows/publish.yaml | Introduces the automated publish/tag/release GitHub Actions workflow with validation guardrails. |
Suppressed comments (1)
.github/workflows/publish.yaml:101
- Same Node version pinning issue here:
node-version: 22may not satisfy the repo'sengines.nodeconstraint (>=22.12.0).
node-version: 22
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
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
Automate npm publishing and GitHub Release creation after a version bump reaches
main.Changes
Validation
npm test(105 tests passed)npm run test:runtimenpm run lintnpm run buildnpm pack --dry-runRisks
publishGitHub environment before the first automated release.release:pluginscript remains only as a legacy local publish helper.Checklist