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

chore: ensure automated v6 release compared to v6 #3149

Merged
merged 1 commit into from
Apr 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ jobs:
repo
})

if (versionTag !== releases[0]?.tag_name) {
const previousRelease = releases.find((r) => r.tag_name.startsWith('v6'))

if (versionTag !== previousRelease?.tag_name) {
return versionTag
}

Expand Down
4 changes: 3 additions & 1 deletion scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ const generateReleaseNotes = async ({ github, owner, repo, versionTag, defaultBr
repo
})

const previousRelease = releases.find((r) => r.tag_name.startsWith('v6'))

const { data: { body } } = await github.rest.repos.generateReleaseNotes({
owner,
repo,
tag_name: versionTag,
target_commitish: defaultBranch,
previous_tag_name: releases[0]?.tag_name
previous_tag_name: previousRelease?.tag_name
})

const bodyWithoutReleasePr = body.split('\n')
Expand Down
Loading