Skip to content

Commit

Permalink
Bump version to 3.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
raulduartep committed Feb 19, 2025
1 parent 1cde074 commit 3b9fb89
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions scripts/create-release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,21 +51,6 @@ async function main() {
},
])

const { value: selectedBumpType } = await inquirer.prompt([
{
type: 'select',
message: 'Select the bump type',
name: 'value',
loop: false,
default: 'patch',
choices: [
{ value: 'patch', name: 'Patch' },
{ value: 'minor', name: 'Minor' },
{ value: 'major', name: 'Major' },
],
},
])

const packageJsonVersion = await getPackageJsonVersion()
const actualVersionIsPreRelease = packageJsonVersion.includes('rc')

Expand All @@ -74,6 +59,21 @@ async function main() {
if (isPreRelease && actualVersionIsPreRelease) {
npmCliBumpType = 'prerelease'
} else {
const { value: selectedBumpType } = await inquirer.prompt([
{
type: 'select',
message: 'Select the bump type',
name: 'value',
loop: false,
default: 'patch',
choices: [
{ value: 'patch', name: 'Patch' },
{ value: 'minor', name: 'Minor' },
{ value: 'major', name: 'Major' },
],
},
])

npmCliBumpType = isPreRelease ? `pre${selectedBumpType}` : selectedBumpType
}

Expand Down Expand Up @@ -108,10 +108,10 @@ async function main() {

await execAsync('git add .')
await execAsync(`git commit -m "Bump version to ${newVersion}" --no-verify`)
// await execAsync('git push origin HEAD --no-verify')
await execAsync('git push origin HEAD --no-verify')

await execAsync(`git tag v${newVersion}`)
// await execAsync(`git push origin v${newVersion}`)
await execAsync(`git push origin v${newVersion}`)

console.log(`\n\nVersion ${newVersion} released successfully`)
}
Expand Down

0 comments on commit 3b9fb89

Please sign in to comment.