Skip to content

Commit 74e8020

Browse files
authored
Update ci.yml to node 20
1 parent 33f09d8 commit 74e8020

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ jobs:
1515
strategy:
1616
matrix:
1717
node-version:
18-
- 16.x
1918
- 18.x
19+
- 20.x
2020
steps:
2121
- uses: actions/checkout@v4
2222
- name: Use Node.js ${{ matrix.node-version }}
@@ -28,7 +28,7 @@ jobs:
2828
- run: npm run doc
2929
- run: npm run build
3030
- name: Save build
31-
if: matrix.node-version == '18.x'
31+
if: matrix.node-version == '20.x'
3232
uses: actions/upload-artifact@v4
3333
with:
3434
name: build
@@ -59,7 +59,7 @@ jobs:
5959
name: build
6060
- uses: actions/setup-node@v4
6161
with:
62-
node-version: 18.x
62+
node-version: 20.x
6363
- uses: rlespinasse/[email protected]
6464
- name: Append commit hash to package version
6565
run: 'sed -i -E "s/(\"version\": *\"[^\"]+)/\1-${GITHUB_SHA_SHORT}/" package.json'
@@ -80,7 +80,7 @@ jobs:
8080
name: build
8181
- uses: actions/setup-node@v1
8282
with:
83-
node-version: 18.x
83+
node-version: 20.x
8484
- name: Disable pre- and post-publish actions
8585
run: 'sed -i -E "s/\"((pre|post)publish)/\"ignore:\1/" package.json'
8686
- uses: JS-DevTools/npm-publish@v1

0 commit comments

Comments
 (0)