Skip to content

Upgrade release-it to v20 and update RELEASE.md - #150

Open
lukemelia wants to merge 1 commit into
masterfrom
upgrade-release-it
Open

lukemelia wants to merge 1 commit into
masterfrom
upgrade-release-it

Conversation

@lukemelia

Copy link
Copy Markdown
Contributor

Re-opens #149 against master. #149 was merged into the pnpm branch after #148 had already landed, so its change never reached master. The content is identical to #149.

Summary

Same change as ember-cli-deploy-s3#212, ember-cli-deploy-s3-index#155 and ember-cli-deploy-revision-data#113.

  • release-it: 14.8.0 → ^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.
  • Remove the direct lerna-changelog dev dependency. Nothing in the repo requires it; the plugin brings its own.
  • RELEASE.md: replace the two-line "run yarn release" note with the full release-it / lerna-changelog process used by the other ember-cli-deploy plugins: label PRs, pnpm install, npm whoami, tokens, pnpm release, --dry-run. This repo has no github.tokenRef, so lerna-changelog reads GITHUB_AUTH and release-it reads GITHUB_TOKEN; the doc says to set both.

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: 43 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

Switch to @release-it-plugins/lerna-changelog and drop the unused direct lerna-changelog dev dependency.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Rvn9nzW2qDp8TtbmZ4mEve
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