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 15
15
strategy :
16
16
matrix :
17
17
node-version :
18
- - 16.x
19
18
- 18.x
19
+ - 20.x
20
20
steps :
21
21
- uses : actions/checkout@v2
22
22
- name : Use Node.js ${{ matrix.node-version }}
27
27
- run : npm test
28
28
- run : npm run build
29
29
- name : Save build
30
- if : matrix.node-version == '16 .x'
31
- uses : actions/upload-artifact@v2
30
+ if : matrix.node-version == '18 .x'
31
+ uses : actions/upload-artifact@v4
32
32
with :
33
33
name : build
34
34
path : |
@@ -40,12 +40,12 @@ jobs:
40
40
needs : test
41
41
runs-on : ubuntu-latest
42
42
steps :
43
- - uses : actions/download-artifact@v2
43
+ - uses : actions/download-artifact@v4
44
44
with :
45
45
name : build
46
46
- uses : actions/setup-node@v1
47
47
with :
48
- node-version : 16 .x
48
+ node-version : 18 .x
49
49
-
uses :
rlespinasse/[email protected]
50
50
- name : Append commit hash to package version
51
51
run : ' sed -i -E "s/(\"version\": *\"[^\"]+)/\1-${GITHUB_SHA_SHORT}/" package.json'
@@ -60,12 +60,12 @@ jobs:
60
60
runs-on : ubuntu-latest
61
61
if : github.ref == 'refs/heads/main'
62
62
steps :
63
- - uses : actions/download-artifact@v2
63
+ - uses : actions/download-artifact@v4
64
64
with :
65
65
name : build
66
66
- uses : actions/setup-node@v1
67
67
with :
68
- node-version : 16 .x
68
+ node-version : 18 .x
69
69
- name : Disable pre- and post-publish actions
70
70
run : ' sed -i -E "s/\"((pre|post)publish)/\"ignore:\1/" package.json'
71
71
- uses : JS-DevTools/npm-publish@v1
You can’t perform that action at this time.
0 commit comments