File tree Expand file tree Collapse file tree 2 files changed +24
-24
lines changed Expand file tree Collapse file tree 2 files changed +24
-24
lines changed Original file line number Diff line number Diff line change 6
6
branches :
7
7
- main
8
8
pull_request :
9
- types : [opened, synchronize, reopened]
10
-
9
+ types : [opened, synchronize, reopened]
10
+
11
11
# Allows you to run this workflow manually from the Actions tab
12
12
workflow_dispatch :
13
13
@@ -16,30 +16,30 @@ jobs:
16
16
runs-on : ubuntu-latest
17
17
steps :
18
18
- name : Check out repository code
19
- uses : actions/checkout@v3
19
+ uses : actions/checkout@v4
20
20
with :
21
21
# Disabling shallow clone is recommended for improving relevancy of reporting
22
22
fetch-depth : 0
23
-
23
+
24
24
- name : Setup node
25
- uses : actions/setup-node@v3
26
- with :
27
- node-version : ' 16 '
28
-
25
+ uses : actions/setup-node@v4
26
+ with :
27
+ node-version : " 20 "
28
+
29
29
- name : Install packages
30
30
run : npm install
31
-
31
+
32
32
- name : Check formatting
33
33
run : npm run check-formatting
34
-
34
+
35
35
- name : Build project and dependencies
36
36
run : npm run build
37
-
37
+
38
38
- name : Run unit tests and generate report
39
39
run : npm run test:ci
40
-
40
+
41
41
- name : SonarCloud Scan
42
42
uses : sonarsource/sonarcloud-github-action@master
43
43
env :
44
44
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
45
- SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
45
+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
Original file line number Diff line number Diff line change 1
1
name : publish
2
2
3
3
# Run when a new Github publish is released
4
- on :
4
+ on :
5
5
release :
6
6
types : [released]
7
7
@@ -10,24 +10,24 @@ jobs:
10
10
runs-on : ubuntu-latest
11
11
steps :
12
12
- name : Check out repository code
13
- uses : actions/checkout@v3
14
-
13
+ uses : actions/checkout@v4
14
+
15
15
- name : Setup node
16
- uses : actions/setup-node@v3
17
- with :
18
- node-version : ' 16 '
19
-
16
+ uses : actions/setup-node@v4
17
+ with :
18
+ node-version : " 20 "
19
+
20
20
- name : Install packages
21
21
run : npm install
22
-
22
+
23
23
- name : Build project and dependencies
24
24
run : npm run build
25
-
25
+
26
26
- name : Run unit tests and generate report
27
27
run : npm run test:ci
28
28
29
29
- name : Publish package
30
- uses : JS-DevTools/npm-publish@v1
30
+ uses : JS-DevTools/npm-publish@v3
31
31
with :
32
32
token : ${{ secrets.NPM_TOKEN }}
33
- access : " public"
33
+ access : " public"
You can’t perform that action at this time.
0 commit comments