Skip to content

Commit

Permalink
feat: remove prerelease
Browse files Browse the repository at this point in the history
  • Loading branch information
flemzord committed Sep 12, 2024
1 parent e5d0702 commit 033f990
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ export async function run(): Promise<void> {
repo: repository
})

const lastStackRelease = releases.data[0]
const filteredReleases = releases.data.filter(
release => !release.prerelease
)

const lastStackRelease = filteredReleases[0]
core.info(`Last release: ${lastStackRelease.tag_name}`)

// Retrieve the `generate.json` file from the last release
Expand Down

0 comments on commit 033f990

Please sign in to comment.