Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: do not mark github release as latest if higher version exists #69

Merged
merged 2 commits into from
Mar 15, 2024

Conversation

kettanaito
Copy link
Member

@kettanaito kettanaito commented Mar 15, 2024

This allows using Release for backport releases. It will generate the GitHub release notes as usual for backport releases, which is nice, but won't mark them as latest.

// release exists on GitHub and see if its version is larger
// than the version we are releasing right now.
const latestGitHubRelease = await getGitHubRelease('latest')
const shouldMarkAsLatest = latestGitHubRelease
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The actual fix.

await cleanup()
})

it('marks the release as non-latest if there is a higher version released on GitHub', async () => {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The confirming test suite.

@kettanaito kettanaito merged commit 3cfd8c6 into main Mar 15, 2024
1 check passed
@kettanaito kettanaito deleted the fix/github-release-make-latest branch March 15, 2024 10:38
@kettanaito
Copy link
Member Author

Released: v0.8.1 🎉

This has been released in v0.8.1!

Make sure to always update to the latest version (npm i @ossjs/release@latest) to get the newest features and bug fixes.


Predictable release automation by @ossjs/release.

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