-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update azure-pipelines.yml for Azure Pipelines
disabled pipeline deploy for pull requests.
- Loading branch information
1 parent
057f924
commit 8d38a74
Showing
1 changed file
with
4 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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' | ||
|