Skip to content

Upgrade release-it to v20, add release script, update RELEASE.md - #113

Merged
lukemelia merged 1 commit into
masterfrom
upgrade-release-it
Oct 28, 2026
Merged

lukemelia merged 1 commit into
masterfrom
upgrade-release-it

Conversation

@lukemelia

Copy link
Copy Markdown
Contributor

Stacked on #108 (pnpm). Merge that first; GitHub will retarget this PR to master.

Summary

Same change as ember-cli-deploy/ember-cli-deploy-s3#212 and ember-cli-deploy/ember-cli-deploy-s3-index#155, plus two repo-specific fixes.

  • release-it: ^14.6.1 → ^20.2.1
  • Changelog plugin: release-it-lerna-changelog@^3.1.0 (deprecated) → @release-it-plugins/lerna-changelog@^9.0.0, its renamed successor. The release-it.plugins key is renamed to match; options are unchanged.
  • release script: this repo had none, so releases ran via npx release-it. Adds "release": "release-it" so pnpm release works like the other plugins.
  • Remove @octokit/rest: an unused dev dependency; nothing in the repo requires it.
  • RELEASE.md: pnpm release in place of npx release-it; add the npm whoami check, pnpm release major and --dry-run; note that unlabeled PRs are left out of the changelog. With launchEditor: false, there's no editor step, so it says to fix labels and titles beforehand. github.tokenRef is GITHUB_AUTH, so one token variable is enough.

Motivation

release-it 14 checks npm access with npm access ls-collaborators, which npm 9 removed, so it reports "not a collaborator" for actual collaborators. release-it 20 uses npm access list collaborators.

v20 rather than v21: release-it 21 requires Node 22.22+, and @release-it-plugins/lerna-changelog@9 supports release-it up to 20. release-it 20 supports ^20.19.0 || ^22.13.0 || >=24.

No runtime dependencies change.

Testing

On Node 20.19.0, npm 10.8.2:

  • pnpm test: 33 passing
  • pnpm release --dry-run --ci --verbose: collaborator check runs npm access list collaborators and passes; the npm publish dry run succeeds; no version bump, commit or tag is created.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Rvn9nzW2qDp8TtbmZ4mEve

@lukemelia
lukemelia deleted the branch pnpm October 28, 2026 02:49
@lukemelia lukemelia closed this Oct 28, 2026
@lukemelia lukemelia reopened this Oct 28, 2026
@lukemelia
lukemelia changed the base branch from pnpm to master October 28, 2026 02:49
Switch to @release-it-plugins/lerna-changelog and drop the unused @octokit/rest dev dependency.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Rvn9nzW2qDp8TtbmZ4mEve
@lukemelia
lukemelia merged commit 828c41c into master Oct 28, 2026
12 checks passed
@lukemelia
lukemelia deleted the upgrade-release-it branch October 28, 2026 02:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant