Skip to content

Commit

Permalink
Update azure-pipelines.yml for Azure Pipelines
Browse files Browse the repository at this point in the history
disabled pipeline deploy for pull requests.
  • Loading branch information
PeterWarren committed Dec 2, 2024
1 parent 057f924 commit 8d38a74
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@ steps:
git config --global user.email '[email protected]'
git config --global user.name 'AzDO Pipeline'
git checkout $(Build.SourceBranchName)
condition: ne(variables['Build.Reason'], 'PullRequest')
displayName: 'Setup Git'
- script: |
cd projects/portal-core-ui/
mkdir '.git'
npm version patch -m "[skip ci] Upgrade to version %s"
condition: ne(variables['Build.Reason'], 'PullRequest')
displayName: 'Bump package version'
- script: |
npm install -g npm@9
Expand All @@ -38,8 +40,10 @@ steps:
- script: |
git push origin $(Build.SourceBranchName)
git push origin --tags
condition: ne(variables['Build.Reason'], 'PullRequest')
displayName: 'Git Push back to repo'
- task: Npm@1
condition: ne(variables['Build.Reason'], 'PullRequest')
inputs:
command: 'publish'
workingDir: 'dist/portal-core-ui'
Expand Down

0 comments on commit 8d38a74

Please sign in to comment.