Skip to content

Commit 462128b

Browse files
authored
ci: update node versions for cI (#732)
1 parent 4de23a6 commit 462128b

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.github/workflows/ci.yml

+10-10
Original file line numberDiff line numberDiff line change
@@ -9,32 +9,32 @@ jobs:
99

1010
strategy:
1111
matrix:
12-
node-version: [12.x, 14.x, 16.x, 18.x]
12+
node-version: [14.x, 16.x, 18.x, 20.x]
1313

1414
steps:
15-
- uses: actions/checkout@v1
15+
- uses: actions/checkout@v4
1616
with:
1717
fetch-depth: 10
18-
- name: Use Node.js 16.x to build
19-
uses: actions/setup-node@v1
18+
- name: Use Node.js 18.x to build
19+
uses: actions/setup-node@v3
2020
with:
21-
node-version: 16.x
21+
node-version: 18.x
2222
- run: npm install
2323
- run: npm run build
2424
- run: rm -rf node_modules
2525
- name: Use Node.js ${{ matrix.node-version }}
26-
uses: actions/setup-node@v1
26+
uses: actions/setup-node@v3
2727
with:
2828
node-version: ${{ matrix.node-version }}
2929
- run: npm install
3030
- run: npm run test
3131
env:
3232
CI: true
3333
- run: npm run lint
34-
if: matrix.node-version == '16.x'
34+
if: matrix.node-version == '18.x'
3535
- run: npm run docs:diff
36-
if: matrix.node-version == '16.x'
36+
if: matrix.node-version == '18.x'
3737
- run: npm run test:node
38-
if: matrix.node-version >= '16.x'
38+
if: matrix.node-version >= '18.x'
3939
- run: npm run test:pack
40-
if: matrix.node-version >= '16.x'
40+
if: matrix.node-version >= '18.x'

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
"prettier:fix": "prettier --write '**/*.{js,jsx,json,md}'",
110110
"bundlewatch": "npm run pretest:browser && bundlewatch --config bundlewatch.config.json",
111111
"md": "runmd --watch --output=README.md README_js.md",
112-
"docs": "( node --version | grep -q 'v16' ) && ( npm run build && npx runmd --output=README.md README_js.md )",
112+
"docs": "( node --version | grep -q 'v18' ) && ( npm run build && npx runmd --output=README.md README_js.md )",
113113
"docs:diff": "npm run docs && git diff --quiet README.md",
114114
"build": "./scripts/build.sh",
115115
"prepack": "npm run build",

0 commit comments

Comments
 (0)