Skip to content

Commit 1939270

Browse files
authored
allow manual prerelease (#1080)
1 parent f1fc6d2 commit 1939270

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/azure-pipelines.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ resources:
1616

1717
parameters:
1818
- name: nextVersion
19-
displayName: '🚀 Release Version (eg: none, major, minor, patch, or X.X.X)'
19+
displayName: '🚀 Release Version (eg: none, major, minor, patch, prerelease, or X.X.X)'
2020
type: string
2121
default: 'none'
2222

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

0 commit comments

Comments
 (0)