File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 20
20
strategy :
21
21
matrix :
22
22
node-version :
23
- - 16.x
24
23
- 18.x
24
+ - 20.x
25
25
26
26
steps :
27
27
- uses : actions/checkout@v2
34
34
- run : npm test
35
35
- run : npm run build --if-present
36
36
- name : Save build
37
- if : matrix.node-version == '16 .x'
38
- uses : actions/upload-artifact@v2
37
+ if : matrix.node-version == '18 .x'
38
+ uses : actions/upload-artifact@v4
39
39
with :
40
40
name : build
41
41
path : |
@@ -46,12 +46,12 @@ jobs:
46
46
needs : build
47
47
runs-on : ubuntu-latest
48
48
steps :
49
- - uses : actions/download-artifact@v2
49
+ - uses : actions/download-artifact@v4
50
50
with :
51
51
name : build
52
52
- uses : actions/setup-node@v1
53
53
with :
54
- node-version : 16 .x
54
+ node-version : 18 .x
55
55
-
uses :
rlespinasse/[email protected]
56
56
- name : Append commit hash to package version
57
57
run : ' sed -i -E "s/(\"version\": *\"[^\"]+)/\1-${GITHUB_SHA_SHORT}/" package.json'
@@ -67,12 +67,12 @@ jobs:
67
67
runs-on : ubuntu-latest
68
68
if : github.ref == 'refs/heads/main'
69
69
steps :
70
- - uses : actions/download-artifact@v2
70
+ - uses : actions/download-artifact@v4
71
71
with :
72
72
name : build
73
73
- uses : actions/setup-node@v1
74
74
with :
75
- node-version : 16 .x
75
+ node-version : 18 .x
76
76
- name : Disable pre- and post-publish actions
77
77
run : ' sed -i -E "s/\"((pre|post)publish)/\"ignore:\1/" package.json'
78
78
- uses : JS-DevTools/npm-publish@v1
You can’t perform that action at this time.
0 commit comments