File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 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 : |
@@ -47,12 +47,12 @@ jobs:
47
47
needs : build
48
48
runs-on : ubuntu-latest
49
49
steps :
50
- - uses : actions/download-artifact@v4.1.7
50
+ - uses : actions/download-artifact@v4
51
51
with :
52
52
name : build
53
53
- uses : actions/setup-node@v1
54
54
with :
55
- node-version : 16 .x
55
+ node-version : 18 .x
56
56
-
uses :
rlespinasse/[email protected]
57
57
- name : Append commit hash to package version
58
58
run : ' sed -i -E "s/(\"version\": *\"[^\"]+)/\1-${GITHUB_SHA_SHORT}/" package.json'
@@ -68,12 +68,12 @@ jobs:
68
68
runs-on : ubuntu-latest
69
69
if : github.ref == 'refs/heads/main'
70
70
steps :
71
- - uses : actions/download-artifact@v4.1.7
71
+ - uses : actions/download-artifact@v4
72
72
with :
73
73
name : build
74
74
- uses : actions/setup-node@v1
75
75
with :
76
- node-version : 16 .x
76
+ node-version : 18 .x
77
77
- name : Disable pre- and post-publish actions
78
78
run : ' sed -i -E "s/\"((pre|post)publish)/\"ignore:\1/" package.json'
79
79
- uses : JS-DevTools/npm-publish@v1
You can’t perform that action at this time.
0 commit comments