File tree 3 files changed +23
-36
lines changed
3 files changed +23
-36
lines changed Original file line number Diff line number Diff line change 1
- name : " Build"
1
+ name : " Build & Test "
2
2
3
3
on :
4
4
push :
@@ -13,18 +13,22 @@ concurrency:
13
13
14
14
jobs :
15
15
build :
16
- name : Build
16
+ name : Build & Test
17
17
runs-on : ubuntu-latest
18
-
18
+ strategy :
19
+ matrix :
20
+ node-version : [18.x, 20.x, 22.x]
19
21
timeout-minutes : 5
20
22
steps :
21
- - uses : actions/checkout@v4
22
- - uses : actions/setup-node@v4
23
+ - name : Check out repo
24
+ uses : actions/checkout@v4
25
+
26
+ - name : Use Node.js ${{ matrix.node-version }}
27
+ uses : actions/setup-node@v4
23
28
with :
24
- node-version : 18
29
+ node-version : ${{ matrix.node-version }}
25
30
registry-url : https://registry.npmjs.org/
26
- # Skip post-install scripts here, as a malicious
27
- # script could steal NODE_AUTH_TOKEN.
31
+
28
32
- name : Install NPM dependencies
29
33
run : npm install --ignore-scripts
30
34
34
38
- name : Run tests
35
39
run : npm run test-ci
36
40
37
- pack :
38
- name : NPM Pack
39
- needs : build
40
- runs-on : ubuntu-latest
41
-
42
- steps :
43
- - uses : actions/checkout@v4
44
- - uses : actions/setup-node@v4
45
- with :
46
- node-version : 18
47
- registry-url : https://registry.npmjs.org/
48
- # Skip post-install scripts here, as a malicious
49
- # script could steal NODE_AUTH_TOKEN.
50
- - name : Install NPM dependencies
51
- run : npm install --ignore-scripts --production
52
-
53
41
- name : Run NPM pack
54
42
run : npm pack
Original file line number Diff line number Diff line change @@ -25,11 +25,11 @@ jobs:
25
25
26
26
steps :
27
27
- name : Checkout repository
28
- uses : actions/checkout@v3
28
+ uses : actions/checkout@v4
29
29
30
30
# Initializes the CodeQL tools for scanning.
31
31
- name : Initialize CodeQL
32
- uses : github/codeql-action/init@v2
32
+ uses : github/codeql-action/init@v3
33
33
with :
34
34
languages : ${{ matrix.language }}
35
35
# If you wish to specify custom queries, you can do so here or in a config file.
38
38
# queries: ./path/to/local/query, your-org/your-repo/queries@main
39
39
40
40
- name : Perform CodeQL Analysis
41
- uses : github/codeql-action/analyze@v2
41
+ uses : github/codeql-action/analyze@v3
Original file line number Diff line number Diff line change 8
8
build :
9
9
name : Build
10
10
runs-on : ubuntu-latest
11
-
12
11
timeout-minutes : 5
13
12
steps :
14
- - uses : actions/checkout@v4
13
+ - name : Check out repo
14
+ uses : actions/checkout@v4
15
+
15
16
- uses : actions/setup-node@v4
16
17
with :
17
- node-version : 20
18
+ node-version : 22
18
19
registry-url : https://registry.npmjs.org/
19
20
# Skip post-install scripts here, as a malicious
20
21
# script could steal NODE_AUTH_TOKEN.
@@ -28,15 +29,13 @@ jobs:
28
29
needs : build
29
30
runs-on : ubuntu-latest
30
31
steps :
31
- - uses : actions/checkout@v4
32
+ - name : Check out repo
33
+ uses : actions/checkout@v4
34
+
32
35
- uses : actions/setup-node@v4
33
36
with :
34
- node-version : 20
37
+ node-version : 22
35
38
registry-url : https://registry.npmjs.org/
36
- # Skip post-install scripts here, as a malicious
37
- # script could steal NODE_AUTH_TOKEN.
38
- - name : Install NPM dependencies
39
- run : npm install --ignore-scripts --production
40
39
41
40
- name : Run NPM publish
42
41
run : npm publish --access public
You can’t perform that action at this time.
0 commit comments