Skip to content

Commit

Permalink
allow manual prerelease (#1080)
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomoreno authored Nov 15, 2024
1 parent f1fc6d2 commit 1939270
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ resources:

parameters:
- name: nextVersion
displayName: '🚀 Release Version (eg: none, major, minor, patch, or X.X.X)'
displayName: '🚀 Release Version (eg: none, major, minor, patch, prerelease, or X.X.X)'
type: string
default: 'none'

Expand All @@ -40,7 +40,7 @@ extends:
testSteps:
- script: npm ci
- script: npm test
${{ if and(in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI'), eq(variables['Build.SourceBranch'], 'refs/heads/main')) }}:
${{ if or(eq(parameters.nextVersion, 'prerelease'), and(in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI'), eq(variables['Build.SourceBranch'], 'refs/heads/main'))) }}:
publishPackage: true
publishRequiresApproval: false
nextVersion: prerelease
Expand Down

0 comments on commit 1939270

Please sign in to comment.