feat: Automate NPM versioning and publishing via GitHub Actions workflows - #36
Draft
felipebarcelospro with Copilot wants to merge 6 commits into
Draft
feat: Automate NPM versioning and publishing via GitHub Actions workflows#36felipebarcelospro with Copilot wants to merge 6 commits into
felipebarcelospro with Copilot wants to merge 6 commits into
Conversation
Co-authored-by: felipebarcelospro <30063988+felipebarcelospro@users.noreply.github.com>
Co-authored-by: felipebarcelospro <30063988+felipebarcelospro@users.noreply.github.com>
Co-authored-by: felipebarcelospro <30063988+felipebarcelospro@users.noreply.github.com>
Co-authored-by: felipebarcelospro <30063988+felipebarcelospro@users.noreply.github.com>
Co-authored-by: felipebarcelospro <30063988+felipebarcelospro@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Automate NPM versioning and publishing via workflows
feat: Automate NPM versioning and publishing via GitHub Actions workflows
Oct 14, 2025
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.
Overview
This PR implements automated NPM versioning and publishing workflows for the Igniter.js monorepo, eliminating manual release processes and reducing the risk of human error. The solution supports both stable releases (via
mainbranch) and beta pre-releases (viabeta/*branches), enabling efficient testing and deployment cycles.Problem Statement
Previously, versioning and publishing packages to NPM was a manual process that:
Solution
🤖 Automated Workflows
1. Stable Releases (
publish-main.yml)mainbranch@latesttag2. Beta Releases (
publish-beta.yml)beta/*branch (e.g.,beta/v1.2.0,beta/feature-x)1.2.0-beta.0)@betatag for internal testing3. PR Validation (
validate-pr.yml)📚 Comprehensive Documentation
For Contributors:
.changeset/README.md- Quick guide on creating changesetsCONTRIBUTING.mdwith release workflow instructionsFor Maintainers:
RELEASE.md- Complete 7KB guide with workflow diagram, troubleshooting, and best practices.github/RELEASE_QUICK_REFERENCE.md- Quick reference card with common commands and decision treesFor End Users:
README.mdwith beta installation instructions@betatag🔒 Security & Reliability
Workflow Diagram
graph LR A[Developer] -->|Creates PR| B[Validate PR Title] B -->|Merge to main| C[Create Version PR] C -->|Merge Version PR| D[Publish @latest] A -->|Push to beta/*| E[Publish @beta]Example Usage
Testing a Beta Feature
Stable Release
Breaking Changes
None. This PR only adds automation infrastructure and documentation. All existing manual workflows remain functional.
Required Setup
Before the workflows can publish packages, maintainers must:
NPM_TOKENThe workflows are pre-configured with proper permissions (
contents: write,id-token: write).Impact
Time Savings:
Quality Improvements:
Developer Experience:
Testing
Files Changed
New Files (6):
.github/workflows/publish-main.yml.github/workflows/publish-beta.yml.github/workflows/validate-pr.ymlRELEASE.md.changeset/README.md.github/RELEASE_QUICK_REFERENCE.mdModified Files (4):
README.mdCONTRIBUTING.md.github/PULL_REQUEST_TEMPLATE.md.changeset/config.jsonReferences
Closes #[issue-number]
Additional Resources:
Original prompt
Fixes #35
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.