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

Commit

Permalink
fix: include prerelease in changelog only for prerelease
Browse files Browse the repository at this point in the history
  • Loading branch information
snutij committed Jan 25, 2024
1 parent 92d0d62 commit d3fca8f
Showing 1 changed file with 3 additions and 0 deletions.
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

0 comments on commit d3fca8f

Please sign in to comment.