Skip to content

Commit

Permalink
Add testrun parameter to hotfix pipeline (#29186)
Browse files Browse the repository at this point in the history
* Add testrun parameter to hotfix pipeline

* prettier fix
  • Loading branch information
dannyvv authored Sep 20, 2023
1 parent 4701c2c commit 81d629f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions azure-pipelines.hotfix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ trigger: none

name: '$(targetNpmVersion) ($(Rev:r))'

parameters:
- name: isTestRun
type: boolean
default: false

variables:
- template: .devops/templates/variables.yml
- group: InfoSec-SecurityResults
Expand Down Expand Up @@ -52,9 +57,10 @@ jobs:
displayName: 'Create tarball'
workingDirectory: 'packages/react'
- script: |
npm publish packages/react/react-$(targetNpmVersion).tgz --tag hf8 --//registry.npmjs.org/:_authToken=$(npmToken)
displayName: Publish new version
- ${{ if ne(parameters.isTestRun, true) }}:
- script: |
npm publish packages/react/react-$(targetNpmVersion).tgz --tag hf8 --//registry.npmjs.org/:_authToken=$(npmToken)
displayName: Publish new version
- task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0
displayName: 📒 Generate Manifest
Expand Down

0 comments on commit 81d629f

Please sign in to comment.