Skip to content

Add release workflow and publish to public npm#108

Merged
coreymartin merged 1 commit intomainfrom
corey/release-workflow
Feb 26, 2026
Merged

Add release workflow and publish to public npm#108
coreymartin merged 1 commit intomainfrom
corey/release-workflow

Conversation

@coreymartin
Copy link
Copy Markdown
Contributor

@coreymartin coreymartin commented Feb 26, 2026

Summary

Replaces the manual GitHub Release → GitHub Packages publish flow with an automated release pipeline that publishes to public npm.

New: release.yaml (workflow_dispatch)

Trigger via Actions → "Create Release PR" → Run workflow. The workflow:

  1. Collects merged PR titles since the last version tag
  2. Calls Claude (Sonnet) via the Anthropic API to:
    • Determine patch or minor bump based on user-facing impact (never major)
    • Generate a changelog summarizing only consumer-facing changes
  3. Bumps package.json, updates CHANGELOG.md
  4. Opens a release/v* PR for review

Updated: publish.yml

  • Triggers when a release/ PR merges to main (replaces GitHub Release trigger)
  • Publishes to public npm via OIDC trusted publishing (replaces GitHub Packages)
  • Uses npm publish --provenance --access public — no token secrets needed
  • Node 24 for trusted publishing support
  • Creates a git tag after successful publish

Release flow

workflow_dispatch → AI generates changelog + version bump → release PR → review → merge → npm publish + git tag

Secrets required

  • ANTHROPIC_API_KEY — for changelog generation and version determination
  • Trusted publishing configured on npmjs.com (no npm token needed)

Test plan

  • Trigger "Create Release PR" and verify the PR is created with correct version bump and changelog
  • Merge the release PR and verify npm publish + git tag creation
  • Confirm provenance badge appears on npmjs.com package page

🤖 Generated with Claude Code

@vercel
Copy link
Copy Markdown

vercel bot commented Feb 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
origin-storybook Ready Ready Preview, Comment Feb 26, 2026 7:27pm

Request Review

- release.yaml: workflow_dispatch creates a version bump PR with
  changelog, limited to patch/minor (no major bumps)
- publish.yml: replaced GitHub Packages publishing with public npm,
  triggers on release/ branch PR merge, creates git tag after publish

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@coreymartin coreymartin force-pushed the corey/release-workflow branch from 92087a4 to 5eda784 Compare February 26, 2026 19:27
@coreymartin coreymartin merged commit df729eb into main Feb 26, 2026
7 checks passed
@coreymartin coreymartin deleted the corey/release-workflow branch February 26, 2026 22:03
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