This repository was archived by the owner on Dec 7, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +20
-12
lines changed
azure-pipelines/templates Expand file tree Collapse file tree 3 files changed +20
-12
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,12 @@ Instruction on how to create new GitHub & Web Releases.
88
99![ alt text] ( ./docs/images/release-process.png " Create Release Process ")
1010
11+ ### AzDO Tasks
12+
13+ [ GitHub Release Task] ( https://github.com/microsoft/azure-pipelines-tasks/tree/master/Tasks/GitHubReleaseV1 )
14+
15+ [ Azure File Copy] ( https://github.com/microsoft/azure-pipelines-tasks/tree/master/Tasks/AzureFileCopyV3 )
16+
1117## Versioning
1218
1319Follow [ NPM Semantic Versioning] ( https://docs.npmjs.com/about-semantic-versioning#incrementing-semantic-versions-in-published-packages )
@@ -23,7 +29,7 @@ Follow [NPM Semantic Versioning](https://docs.npmjs.com/about-semantic-versionin
2329
2430The pipeline use [ npm-version] ( https://docs.npmjs.com/cli/version ) to update version
2531
26- ### Pre
32+ #### Pre
2733
2834All version with ` pre ` , ie. ` preminor ` will bump the appropriate didgit & append ` -0 ` to the new version
2935
@@ -39,7 +45,7 @@ Examples:
39451 . v2.3.0 --> v2.4.0-0
40461 . v2.4.0-0 --> v2.5.0-0
4147
42- #### Exception
48+ ##### Exception
4349
4450` prerelease ` behave similar to prepatch, but would increment the last digit.
4551
@@ -51,10 +57,10 @@ v2.3.0 --> v2.3.1-0
5157
5258v2.3.0-0 --> v2.3.0-1
5359
54- ### Major
60+ #### Major
5561
5662v2.x.x --> v3.0.0
5763
58- ### Minor
64+ #### Minor
5965
6066v2.2.0 --> v2.3.0
Original file line number Diff line number Diff line change 11parameters :
22 GitHubConnection : ' ' # defaults for any parameters that aren't specified
33 repositoryName : ' '
4- isPreRelease : true
4+ isPreRelease : false
55 isDraft : false
66
77jobs :
@@ -46,20 +46,24 @@ jobs:
4646 - bash : |
4747 set -e
4848
49+ echo
50+ echo "======> Set commit sha"
51+ COMMIT_SHA=$(git rev-parse --short HEAD)
52+ echo "COMMIT SHA: $COMMIT_SHA"
53+ echo "##vso[task.setvariable variable=COMMIT_SHA]$COMMIT_SHA"
54+
4955 ###
5056 # These variables were set in the "Version Bump" stage. There are
5157 # currently no way to pass variables between stages, hence this workaround.
5258 ###
59+ echo
60+ echo "======> Set version variables"
5361 CURRENT_VERSION=$(cat $(Pipeline.Workspace)/variables/CURRENT_VERSION)
5462 echo "##vso[task.setvariable variable=CURRENT_VERSION]$CURRENT_VERSION"
5563
5664 NEXT_VERSION=$(cat $(Pipeline.Workspace)/variables/NEXT_VERSION)
5765 echo "##vso[task.setvariable variable=NEXT_VERSION]$NEXT_VERSION"
58- displayName: "Retrieve version variables"
59-
60- - bash : |
61- printenv | sort
62- displayName: "Print Env Variables"
66+ displayName: "Set variables for release task"
6367
6468 - task : GitHubRelease@1
6569 displayName : ' GitHub release (create)'
Original file line number Diff line number Diff line change 5555 echo "Prod url: $PROD_URL"
5656 displayName: "Prod URL"
5757 condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
58-
59-
You can’t perform that action at this time.
0 commit comments