@@ -7,15 +7,15 @@ pr: none # no PR triggers
7
7
jobs :
8
8
- job : GetReleaseVersion
9
9
pool :
10
- vmImage : ' windows -latest'
10
+ vmImage : ' ubuntu -latest'
11
11
steps :
12
12
# 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.
14
14
- 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
19
19
name : Version
20
20
env :
21
21
REPO_OWNER : $(REPO_OWNER)
28
28
29
29
- job : UploadArtifacts
30
30
pool :
31
- vmImage : vs2017-win2016
31
+ vmImage : ' ubuntu-latest '
32
32
33
33
dependsOn :
34
34
- GetReleaseVersion
@@ -42,16 +42,14 @@ jobs:
42
42
IsSignedZipBranch : $[ dependencies.GetReleaseVersion.outputs['Version.IsSignedZipBranch'] ]
43
43
44
44
steps :
45
- - template : platforms/templates/preparation.yml
46
-
47
45
# 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.
49
47
- script : |
50
- cd script\ vsts
51
- npm install
48
+ cd script/ vsts
49
+ npm ci
52
50
env:
53
51
GITHUB_TOKEN: $(GITHUB_TOKEN)
54
- displayName: npm install
52
+ displayName: npm ci
55
53
56
54
- task : DownloadBuildArtifacts@0
57
55
inputs :
60
58
displayName : Download Release Artifacts
61
59
62
60
- 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"
64
62
env:
65
63
GITHUB_TOKEN: $(GITHUB_TOKEN)
66
64
ATOM_RELEASE_VERSION: $(ReleaseVersion)
75
73
condition: and(succeeded(), eq(variables['Atom.AutoDraftRelease'], 'true'), eq(variables['IsReleaseBranch'], 'true'))
76
74
77
75
- 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)/"
79
77
env:
80
78
ATOM_RELEASE_VERSION: $(ReleaseVersion)
81
79
ATOM_RELEASES_S3_KEY: $(ATOM_RELEASES_S3_KEY)
0 commit comments