Skip to content

chore: add release workflow for stable and beta npm publishing#21

Merged
MQ37 merged 2 commits intomainfrom
feat/release-workflow
Mar 4, 2026
Merged

chore: add release workflow for stable and beta npm publishing#21
MQ37 merged 2 commits intomainfrom
feat/release-workflow

Conversation

@MQ37
Copy link
Collaborator

@MQ37 MQ37 commented Mar 4, 2026

Summary

  • Adds a manually-triggered GitHub Actions workflow (release.yml) for publishing to npm
  • Supports two modes: release (stable, from main only) and pre-release (beta, from any branch)
  • Uses npm Trusted Publishing with --provenance for supply chain security

Release mode

  • Bumps version (patch/minor/major), updates CHANGELOG.md and README
  • Publishes to npm as latest, creates GitHub release

Pre-release mode

  • Bumps to X.Y.Z-beta.N, publishes to npm with --tag beta
  • Creates GitHub pre-release with auto-generated notes
  • Can run from any branch (e.g. feature branches)

Setup required

  • Add NPM_TOKEN secret to the repository

@MQ37 MQ37 merged commit 33776b3 into main Mar 4, 2026
5 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.

2 participants