Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

fix: include prerelease in changelog only for prerelease #1003

Merged
merged 1 commit into from
Jan 26, 2024
Merged
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
3 changes: 3 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ jobs:
repo: context.repo.repo,
});

const includePrereleases = context.payload.release.prerelease;

const changelog = releases
.filter((release) => includePrereleases || !release.prerelease)
.map((release) => `# ${release.tag_name}\n${release.body}\n`)
.join("\n");

Expand Down
Loading