Skip to content

Publish to npm on version bump instead of tag push#27

Merged
andeplane merged 2 commits intomasterfrom
publish-on-version-bump
Mar 30, 2026
Merged

Publish to npm on version bump instead of tag push#27
andeplane merged 2 commits intomasterfrom
publish-on-version-bump

Conversation

@andeplane
Copy link
Copy Markdown
Collaborator

Summary

  • Replaces the v* tag trigger with a push-to-master trigger (filtered to package.json changes)
  • Adds a version-change detection step using jq to compare HEAD~1 vs current package.json version
  • Gates the publish step on changed == 'true', so only actual version bumps trigger a publish

How to release going forward

Just bump the version in package.json and merge to master — no manual tagging required.

Test plan

  • Merge a PR that bumps package.json version → workflow should run and publish to npm
  • Merge a PR that does not change package.json version → workflow should not trigger (paths filter)
  • Verify the new version appears on npmjs.com after a successful run

🤖 Generated with Claude Code

Removes the requirement to manually push a v* tag to trigger a release.
Now publishes automatically when package.json version changes on master.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown
Collaborator

@alex-zhilkin alex-zhilkin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀 🚢

@andeplane andeplane enabled auto-merge (squash) March 30, 2026 07:22
@andeplane andeplane disabled auto-merge March 30, 2026 07:22
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@andeplane andeplane enabled auto-merge (squash) March 30, 2026 07:24
@andeplane andeplane merged commit 7bdd5ce into master Mar 30, 2026
1 check passed
@andeplane andeplane deleted the publish-on-version-bump branch March 30, 2026 07:34
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