@@ -7,15 +7,15 @@ pr: none # no PR triggers
77jobs :
88 - job : GetReleaseVersion
99 pool :
10- vmImage : ' windows -latest'
10+ vmImage : ' ubuntu -latest'
1111 steps :
1212 # This has to be done separately because VSTS inexplicably
13- # exits the script block after `npm install ` completes.
13+ # exits the script block after `npm ci ` completes.
1414 - script : |
15- cd script\ vsts
16- npm install
17- displayName: npm install
18- - script : node script\ vsts\ get-release-version.js
15+ cd script/ vsts
16+ npm ci
17+ displayName: npm ci
18+ - script : node script/ vsts/ get-release-version.js
1919 name : Version
2020 env :
2121 REPO_OWNER : $(REPO_OWNER)
2828
2929 - job : UploadArtifacts
3030 pool :
31- vmImage : vs2017-win2016
31+ vmImage : ' ubuntu-latest '
3232
3333 dependsOn :
3434 - GetReleaseVersion
@@ -42,16 +42,14 @@ jobs:
4242 IsSignedZipBranch : $[ dependencies.GetReleaseVersion.outputs['Version.IsSignedZipBranch'] ]
4343
4444 steps :
45- - template : platforms/templates/preparation.yml
46-
4745 # This has to be done separately because VSTS inexplicably
48- # exits the script block after `npm install ` completes.
46+ # exits the script block after `npm ci ` completes.
4947 - script : |
50- cd script\ vsts
51- npm install
48+ cd script/ vsts
49+ npm ci
5250 env:
5351 GITHUB_TOKEN: $(GITHUB_TOKEN)
54- displayName: npm install
52+ displayName: npm ci
5553
5654 - task : DownloadBuildArtifacts@0
5755 inputs :
6058 displayName : Download Release Artifacts
6159
6260 - script : |
63- node $(Build.SourcesDirectory)\ script\ vsts\ upload-artifacts.js --create-github-release --assets-path "$(System.ArtifactsDirectory)" --linux-repo-name "atom-staging"
61+ node $(Build.SourcesDirectory)/ script/ vsts/ upload-artifacts.js --create-github-release --assets-path "$(System.ArtifactsDirectory)" --linux-repo-name "atom-staging"
6462 env:
6563 GITHUB_TOKEN: $(GITHUB_TOKEN)
6664 ATOM_RELEASE_VERSION: $(ReleaseVersion)
7573 condition: and(succeeded(), eq(variables['Atom.AutoDraftRelease'], 'true'), eq(variables['IsReleaseBranch'], 'true'))
7674
7775 - script : |
78- node $(Build.SourcesDirectory)\ script\ vsts\ upload-artifacts.js --assets-path "$(System.ArtifactsDirectory)" --s3-path "vsts-artifacts/$(Build.BuildId)/"
76+ node $(Build.SourcesDirectory)/ script/ vsts/ upload-artifacts.js --assets-path "$(System.ArtifactsDirectory)" --s3-path "vsts-artifacts/$(Build.BuildId)/"
7977 env:
8078 ATOM_RELEASE_VERSION: $(ReleaseVersion)
8179 ATOM_RELEASES_S3_KEY: $(ATOM_RELEASES_S3_KEY)
0 commit comments