Skip to content

Commit

Permalink
feat: set corresponding prerelease type from releaseType
Browse files Browse the repository at this point in the history
BREAKING CHANGE: prerelease option generates pre[major|minor|patch] release
  • Loading branch information
bj00rn committed Nov 27, 2024
1 parent 3c4970b commit 3a26e24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/bumpVersion.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = async (releaseType, version) => {
const identifier = core.getInput('pre-release-identifier')

if (version) {
newVersion = semver.inc(version, (prerelease ? 'prerelease' : releaseType), identifier)
newVersion = semver.inc(version, (prerelease ? `pre${releaseType}` : releaseType), identifier)
} else {

const fallbackVersion = core.getInput('fallback-version')
Expand Down

0 comments on commit 3a26e24

Please sign in to comment.