File tree Expand file tree Collapse file tree 3 files changed +65
-8
lines changed Expand file tree Collapse file tree 3 files changed +65
-8
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,27 @@ defaults:
15
15
shell : bash
16
16
17
17
jobs :
18
- build :
18
+ test :
19
+ runs-on : ubuntu-latest
20
+ if : github.repository == 'microsoft/TypeScript'
21
+
22
+ steps :
23
+ - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
24
+ - uses : actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
25
+ - run : |
26
+ npm --version
27
+ # corepack enable npm
28
+ npm install -g $(jq -r '.packageManager' < package.json)
29
+ npm --version
30
+ - name : Test insiders
31
+ run : |
32
+ npm ci
33
+ npx hereby configure-insiders
34
+ npm test
35
+
36
+ publish :
37
+ needs : test
38
+
19
39
runs-on : ubuntu-latest
20
40
if : github.repository == 'microsoft/TypeScript'
21
41
36
56
npm ci
37
57
npx hereby configure-insiders
38
58
npx hereby LKG
39
- npx hereby runtests-parallel
40
- npx hereby clean
41
59
npm publish --tag insiders
42
60
env :
43
61
NODE_AUTH_TOKEN : ${{secrets.npm_token}}
Original file line number Diff line number Diff line change @@ -16,7 +16,26 @@ defaults:
16
16
shell : bash
17
17
18
18
jobs :
19
- build :
19
+ test :
20
+ runs-on : ubuntu-latest
21
+ if : github.repository == 'microsoft/TypeScript'
22
+
23
+ steps :
24
+ - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
25
+ - uses : actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
26
+ - run : |
27
+ npm --version
28
+ # corepack enable npm
29
+ npm install -g $(jq -r '.packageManager' < package.json)
30
+ npm --version
31
+ - name : Setup and publish nightly
32
+ run : |
33
+ npm ci
34
+ npx hereby configure-nightly
35
+ npm test
36
+
37
+ publish :
38
+ needs : [test]
20
39
runs-on : ubuntu-latest
21
40
if : github.repository == 'microsoft/TypeScript'
22
41
37
56
npm ci
38
57
npx hereby configure-nightly
39
58
npx hereby LKG
40
- npx hereby runtests-parallel
41
- npx hereby clean
42
59
npm publish --tag next
43
60
env :
44
61
NODE_AUTH_TOKEN : ${{secrets.npm_token}}
Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ extends:
28
28
- stage : buildStage
29
29
displayName : Build Stage
30
30
jobs :
31
- - job : build
32
- displayName : Build
31
+ - job : test
32
+ displayName : Test
33
33
steps :
34
34
- checkout : self
35
35
clean : true
@@ -52,6 +52,28 @@ extends:
52
52
- script : ' npm test'
53
53
displayName : ' npm test'
54
54
55
+ - job : build
56
+ displayName : Build
57
+ dependsOn : test
58
+ steps :
59
+ - checkout : self
60
+ clean : true
61
+ fetchDepth : 1
62
+ fetchTags : false
63
+
64
+ - task : NodeTool@0
65
+ inputs :
66
+ versionSpec : 20.x
67
+ displayName : ' Install Node'
68
+
69
+ - script : |
70
+ npm install -g `node -e 'console.log(JSON.parse(fs.readFileSync("package.json", "utf8")).packageManager)'`
71
+ npm --version
72
+ displayName: 'Install packageManager from package.json'
73
+
74
+ - script : npm ci
75
+ displayName : ' npm ci'
76
+
55
77
- script : |
56
78
npx hereby LKG
57
79
npx hereby clean
You can’t perform that action at this time.
0 commit comments