Skip to content

fix(release): create local v<version> tag before changesets/action pushes#6

Merged
karngyan merged 1 commit into
mainfrom
fix/release-create-local-tag
May 1, 2026
Merged

fix(release): create local v<version> tag before changesets/action pushes#6
karngyan merged 1 commit into
mainfrom
fix/release-create-local-tag

Conversation

@karngyan
Copy link
Copy Markdown
Contributor

@karngyan karngyan commented May 1, 2026

Summary

  • The Release workflow failed on the previous push to main with error: src refspec v0.1.0 does not match any because scripts/release-tag.mjs emitted New tag: resumex@0.1.0 to signal changesets/action@v1 but never created the local tag.
  • For single-package repos, changesets/action@v1 ignores the package name in the New tag: line and shells out git push origin v${version} (src/run.ts:142-149, src/git.ts:78-92). It does not create the tag itself — changeset publish would have, but we replaced that flow with our custom script.
  • Fix: create the local v${version} tag before emitting the line, and correct the gh release view skip-check to use v${version} (the action creates releases at v${version}, not <pkg>@<version>), so re-runs are actually no-ops.

Test plan

  • After merge, the Release workflow on main succeeds: pushes tag v0.1.0, creates the GitHub Release with the CHANGELOG body.
  • Subsequent pushes to main with no changesets are no-ops (skip-check short-circuits).

…shes

changesets/action@v1 shells out `git push origin v<version>` for
single-package repos and does not create the tag itself; `changeset
publish` would have, but our custom publish script replaced it. Add
`git tag v<version>` here, and fix the gh-release skip-check to look
up the correct release name (`v<version>`, not `<pkg>@<version>`).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@cloudflare-workers-and-pages
Copy link
Copy Markdown
Contributor

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
resumex 17b93cb Commit Preview URL

Branch Preview URL
May 01 2026, 10:04 PM

@karngyan karngyan merged commit c08e7ef into main May 1, 2026
2 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.

1 participant