File tree Expand file tree Collapse file tree 3 files changed +3039
-1750
lines changed Expand file tree Collapse file tree 3 files changed +3039
-1750
lines changed Original file line number Diff line number Diff line change 17
17
node-version :
18
18
- 18.x
19
19
- 20.x
20
+ - 22.x
20
21
steps :
21
22
- uses : actions/checkout@v4
22
23
- name : Use Node.js ${{ matrix.node-version }}
27
28
- run : npm run build
28
29
- run : npm run bundlesize
29
30
- name : Save build
30
- if : matrix.node-version == '18 .x'
31
+ if : matrix.node-version == '20 .x'
31
32
uses : actions/upload-artifact@v4
32
33
with :
33
34
name : build
58
59
name : build
59
60
- uses : actions/setup-node@v1
60
61
with :
61
- node-version : 18 .x
62
+ node-version : 20 .x
62
63
-
uses :
rlespinasse/[email protected]
63
64
- name : Append commit hash to package version
64
65
run : ' sed -i -E "s/(\"version\": *\"[^\"]+)/\1-${GITHUB_SHA_SHORT}/" package.json'
79
80
name : build
80
81
- uses : actions/setup-node@v1
81
82
with :
82
- node-version : 18 .x
83
+ node-version : 20 .x
83
84
- name : Disable pre- and post-publish actions
84
85
run : ' sed -i -E "s/\"((pre|post)publish)/\"ignore:\1/" package.json'
85
86
- uses : JS-DevTools/npm-publish@v1
Original file line number Diff line number Diff line change 1
- v18 .19.0
1
+ v20 .19.2
You can’t perform that action at this time.
0 commit comments