ci.yml
1name: CI
2
3on:
4 push:
5 branches: [ main ]
6 pull_request:
7 branches: [ main ]
8
9jobs:
10 build:
11 runs-on: ubuntu-latest
12
13 strategy:
14 matrix:
15 node-version: [18.x, 20.x]
16
17 steps:
18 - uses: actions/checkout@v3
19
20 - name: Use Node.js ${{ matrix.node-version }}
21 uses: actions/setup-node@v3
22 with:
23 node-version: ${{ matrix.node-version }}
24
25 - name: Install dependencies
26 run: |
27 npm i
28 npm ci
29
30 - name: Build
31 run: npm run build