Skip to content

fix(ci): restore release tags with Changesets Action v2 - #550

Merged
dancormier merged 1 commit into
mainfrom
dcormier/fix-changesets-release-action
Oct 8, 2026
Merged

dancormier merged 1 commit into
mainfrom
dcormier/fix-changesets-release-action

Conversation

@dancormier

Copy link
Copy Markdown
Contributor

Summary

Use Changesets Action v2 with the repository's Changesets CLI v3 so future npm publishes also push their Git tags and create GitHub releases. The 1.1.0 publish succeeded, but Action v1 did not recognize CLI v3's changed output and silently skipped both steps.

Changes

  • Upgrade to stable changesets/action@v2.1.2, which reads CLI v3's structured publish output instead of matching New tag: in stdout.
  • Migrate action inputs and the release-PR comment's output reference. Preserve the existing version/publish scripts, main-only release gates, and Git CLI pushes.
  • Pass the existing GitHub secret through github-token; configure npm authentication with setup-node's registry URL and NODE_AUTH_TOKEN using the existing npm secret. No secret or permission changes are required.
  • Add release configuration regression tests. No package dependency/version changes or changeset are needed for this CI-only fix.
  • This does not backfill the missing v1.1.0 tag or GitHub release; those need a separate recovery action at commit b1d88c76d6b492985d880a9a51292c0acdea067f.

How to test

  1. Use Node.js and npm (CI uses lts/*) and run npm ci.
  2. Run npm run test:release-config. All 9 tests passed locally. They guard action compatibility, npm/GitHub authentication wiring, tag pushes, and the release-PR output reference. Separate local mutation checks also rejected the previous workflow and broken action, registry, token, and output configurations.
  3. Run npm run test:unit -- --runInBand, npm run lint, and npx tsc --noEmit. Locally, all 50 unit suites passed (1,100 tests passed; 10 skipped; 20 todo), lint passed with two existing assertion warnings, and type-check passed. Workflow YAML parsing and git diff --check also passed. Tested on macOS with Node.js 26.5.0 and npm 11.17.0; no browser behavior changes.
  4. Wait for PR checks. E2E and package-consumer tests were not rerun locally. Netlify deploy-preview status/link should appear in PR checks; preview availability is not yet verified and no manual activation is planned.
  5. After merge, verify the next new package publish pushes its version tag and creates a GitHub release with changelog notes. The release job only runs on main, so a live publish was not exercised locally or on this PR. Merging this fix alone will not repair the already-published 1.1.0 release metadata.

@changeset-bot

changeset-bot Bot commented Oct 8, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: f4df514

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@netlify

netlify Bot commented Oct 8, 2026

Copy link
Copy Markdown

✅ Deploy Preview for stacks-editor ready!

Name Link
🔨 Latest commit f4df514
🔍 Latest deploy log https://app.netlify.com/projects/stacks-editor/deploys/6ac7e3d1e5df210008d87158
😎 Deploy Preview https://deploy-preview-550--stacks-editor.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@dancormier
dancormier marked this pull request as ready for review October 8, 2026 18:42
@dancormier
dancormier requested a review from a team as a code owner October 8, 2026 18:42
@dancormier
dancormier merged commit 1e26ed0 into main Oct 8, 2026
11 checks passed
@dancormier
dancormier deleted the dcormier/fix-changesets-release-action branch October 8, 2026 18:44
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