Skip to content

Commit 2d7a8df

Browse files
committed
using templates in nightly-release.yml
1 parent 5f5b93b commit 2d7a8df

File tree

1 file changed

+5
-16
lines changed

1 file changed

+5
-16
lines changed

script/vsts/nightly-release.yml

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,7 @@ jobs:
3535
ReleaseVersion: $[ dependencies.GetReleaseVersion.outputs['Version.ReleaseVersion'] ]
3636

3737
steps:
38-
- task: NodeTool@0
39-
inputs:
40-
versionSpec: 12.13.1
41-
displayName: Install Node.js 12.13.1
38+
- template: platforms/templates/preparation.yml
4239

4340
#This has to be done separately because VSTS inexplicably
4441
#exits the script block after `npm install` completes.
@@ -74,23 +71,15 @@ jobs:
7471
vmImage: macos-10.14
7572

7673
steps:
77-
- task: NodeTool@0
78-
inputs:
79-
versionSpec: 12.13.1
80-
displayName: Install Node.js 12.13.1
74+
- template: platforms/templates/preparation.yml
8175

82-
- script: npm install --global [email protected]
83-
displayName: Update npm
76+
- template: platforms/templates/bootstrap.yml
8477

85-
- script: |
86-
script/bootstrap
87-
displayName: Bootstrap
88-
89-
- script: |
78+
- script: |
9079
cd script/lib
9180
npm install
9281
displayName: npm install
93-
- script: |
82+
- script: |
9483
cd script/lib/update-dependency
9584
node index.js
9685
displayName: Bump depedencies

0 commit comments

Comments
 (0)