feat(cli): show changelog URL on update and fix bun installs#191
Merged
feat(cli): show changelog URL on update and fix bun installs#191
Conversation
Bun does not properly resolve the @latest dist-tag, causing stale versions to be installed. Use the exact version number instead, and add --no-cache to ensure bun fetches the latest package from registry.
Add GitHub compare URL to background update notices so users can see what changed between their current version and the latest release. Also use exact version in the install command for bun users.
Display a GitHub compare URL when an update is available, linking to the diff between the current and latest release tags. Include releaseUrl and changelogUrl in JSON output. Use exact version spec for bun.
Replace deprecated actions/create-release@v1 with gh release create. Generate release notes from conventional commits and include them in the GitHub Release body alongside npm install instructions.
Cover formatGlobalInstallCommand and getGlobalInstallArgs with tests for all package managers. Add getCachedUpdateNotice test to verify changelog URL is included in cached update notices.
Collaborator
Author
|
!release cli patch beta |
Contributor
|
🚀 @Leechael release command accepted: 📦 Prerelease tag: |
Contributor
|
🎉 Release completed:
📦 Package Info
📄 Files included |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ghCLI does)@latesttag (bun doesn't resolve dist-tags reliably) and add--no-cacheactions/create-release@v1withgh release create, include actual changelog content in GitHub Release bodyChanges
CLI update notifications (
update-check.ts)Self update command (
self/update/index.ts)releaseUrlandchangelogUrlto JSON outputBun fix (
package-manager.ts)--no-cacheflag forbun add -gcommands@latestfor bunCI release workflow (
release-command.yml)RELEASE_NOTES.mdfrom conventional commitsactions/create-release@v1withgh release createExample output
Test plan
--no-cachein update notice