File tree 3 files changed +20
-12
lines changed
azure-pipelines/templates
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.
8
8
9
9
![ alt text] ( ./docs/images/release-process.png " Create Release Process ")
10
10
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
+
11
17
## Versioning
12
18
13
19
Follow [ 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
23
29
24
30
The pipeline use [ npm-version] ( https://docs.npmjs.com/cli/version ) to update version
25
31
26
- ### Pre
32
+ #### Pre
27
33
28
34
All version with ` pre ` , ie. ` preminor ` will bump the appropriate didgit & append ` -0 ` to the new version
29
35
@@ -39,7 +45,7 @@ Examples:
39
45
1 . v2.3.0 --> v2.4.0-0
40
46
1 . v2.4.0-0 --> v2.5.0-0
41
47
42
- #### Exception
48
+ ##### Exception
43
49
44
50
` prerelease ` behave similar to prepatch, but would increment the last digit.
45
51
@@ -51,10 +57,10 @@ v2.3.0 --> v2.3.1-0
51
57
52
58
v2.3.0-0 --> v2.3.0-1
53
59
54
- ### Major
60
+ #### Major
55
61
56
62
v2.x.x --> v3.0.0
57
63
58
- ### Minor
64
+ #### Minor
59
65
60
66
v2.2.0 --> v2.3.0
Original file line number Diff line number Diff line change 1
1
parameters :
2
2
GitHubConnection : ' ' # defaults for any parameters that aren't specified
3
3
repositoryName : ' '
4
- isPreRelease : true
4
+ isPreRelease : false
5
5
isDraft : false
6
6
7
7
jobs :
@@ -46,20 +46,24 @@ jobs:
46
46
- bash : |
47
47
set -e
48
48
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
+
49
55
###
50
56
# These variables were set in the "Version Bump" stage. There are
51
57
# currently no way to pass variables between stages, hence this workaround.
52
58
###
59
+ echo
60
+ echo "======> Set version variables"
53
61
CURRENT_VERSION=$(cat $(Pipeline.Workspace)/variables/CURRENT_VERSION)
54
62
echo "##vso[task.setvariable variable=CURRENT_VERSION]$CURRENT_VERSION"
55
63
56
64
NEXT_VERSION=$(cat $(Pipeline.Workspace)/variables/NEXT_VERSION)
57
65
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"
63
67
64
68
- task : GitHubRelease@1
65
69
displayName : ' GitHub release (create)'
Original file line number Diff line number Diff line change 55
55
echo "Prod url: $PROD_URL"
56
56
displayName: "Prod URL"
57
57
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
58
-
59
-
You can’t perform that action at this time.
0 commit comments