Skip to content

Commit a2689e2

Browse files
author
Vott
committed
update docs
1 parent 7498260 commit a2689e2

File tree

3 files changed

+20
-12
lines changed

3 files changed

+20
-12
lines changed

RELEASE_GUIDE.md

+10-4
Original file line numberDiff line numberDiff 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

1319
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
2329

2430
The pipeline use [npm-version](https://docs.npmjs.com/cli/version) to update version
2531

26-
### Pre
32+
#### Pre
2733

2834
All version with `pre`, ie. `preminor` will bump the appropriate didgit & append `-0` to the new version
2935

@@ -39,7 +45,7 @@ Examples:
3945
1. v2.3.0 --> v2.4.0-0
4046
1. 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

5258
v2.3.0-0 --> v2.3.0-1
5359

54-
### Major
60+
#### Major
5561

5662
v2.x.x --> v3.0.0
5763

58-
### Minor
64+
#### Minor
5965

6066
v2.2.0 --> v2.3.0

azure-pipelines/templates/create-github-release.yml

+10-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
parameters:
22
GitHubConnection: '' # defaults for any parameters that aren't specified
33
repositoryName: ''
4-
isPreRelease: true
4+
isPreRelease: false
55
isDraft: false
66

77
jobs:
@@ -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)'

azure-pipelines/templates/create-web-release.yml

-2
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,3 @@ jobs:
5555
echo "Prod url: $PROD_URL"
5656
displayName: "Prod URL"
5757
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
58-
59-

0 commit comments

Comments
 (0)