17
17
18
18
jobs :
19
19
build-and-test :
20
- name : Build and test
20
+ name : Build and test (${{ matrix.os }}, node-${{ matrix.node-version }})
21
21
runs-on : ${{ matrix.os }}
22
22
23
23
strategy :
24
24
fail-fast : false
25
25
matrix :
26
26
os : [ubuntu-latest]
27
- node : [18]
27
+ node-version : [18,20,22 ]
28
28
29
29
steps :
30
30
- name : Checkout
31
31
uses : actions/checkout@v4
32
32
with :
33
33
persist-credentials : false
34
34
35
- - name : Use Node.js ${{ matrix.node }}
35
+ - name : Use Node.js ${{ matrix.node-node-version }}
36
36
uses : actions/setup-node@v4
37
37
with :
38
- node-version : ${{ matrix.node }}
38
+ node-version : ${{ matrix.node-version }}
39
39
40
40
- name : Build
41
41
shell : bash
@@ -52,16 +52,20 @@ jobs:
52
52
yarn test --verbose
53
53
54
54
publish-next :
55
- name : Publish 'next' package to npm
55
+ name : Publish 'next' package to npm (${{ matrix.os }})
56
56
needs : build-and-test
57
57
if : github.ref == 'refs/heads/master' && github.event_name == 'push' && github.repository == 'eclipse-cdt-cloud/tsp-typescript-client'
58
58
runs-on : ubuntu-latest
59
+ strategy :
60
+ matrix :
61
+ os : [ubuntu-latest]
62
+ node-version : [20]
59
63
60
64
steps :
61
65
- uses : actions/checkout@v4
62
66
- uses : actions/setup-node@v4
63
67
with :
64
- node-version : ' 18 '
68
+ node-version : ${{ matrix.node-version }}
65
69
registry-url : ' https://registry.npmjs.org'
66
70
- run : yarn --frozen-lockfile
67
71
- name : Publish 'next'
@@ -78,15 +82,20 @@ jobs:
78
82
NODE_AUTH_TOKEN : ${{ secrets.NPM_AUTH_TOKEN }}
79
83
80
84
publish-latest :
81
- name : Publish 'latest' package to npm
85
+ name : Publish 'latest' package to npm (${{ matrix.os }})
82
86
needs : build-and-test
83
87
if : github.event_name == 'release' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'eclipse-cdt-cloud/tsp-typescript-client'
84
88
runs-on : ubuntu-latest
89
+ strategy :
90
+ matrix :
91
+ os : [ubuntu-latest]
92
+ node-version : [20]
93
+
85
94
steps :
86
95
- uses : actions/checkout@v4
87
96
- uses : actions/setup-node@v4
88
97
with :
89
- node-version : ' 18 '
98
+ node-version : ${{ matrix.node-version }}
90
99
registry-url : ' https://registry.npmjs.org'
91
100
- run : yarn --frozen-lockfile
92
101
- name : Publish 'latest'
0 commit comments