[ci] node version setting updated

This commit is contained in:
Revone 2023-09-21 13:01:37 +08:00
parent b263262a46
commit b642a91775

View file

@ -8,15 +8,17 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x]
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v2
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: 19
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install