diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 97c6399..c3d9799 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -4,15 +4,20 @@ on: [push, pull_request] jobs: build: - + name: Build on Node ${{ matrix.node }} runs-on: ubuntu-latest + strategy: + fail-fast: false + max-parallel: 2 + matrix: + node: [ 20, 22 ] steps: - uses: actions/checkout@v4 - - name: Using Node 20 + - name: Using Node ${{ matrix.node }} uses: actions/setup-node@v4 with: - node-version: 20 + node-version: ${{ matrix.node }} - name: Update npm version to latest run: npm install -g npm@latest # shop showing warnings about the lockfile - name: Install dependencies diff --git a/build.js b/build.js index dd8edb5..16ae9b1 100644 --- a/build.js +++ b/build.js @@ -1,5 +1,5 @@ import { build } from 'esbuild'; -import info from './package.json' assert { type: 'json' }; +import info from './package.json' with { type: 'json' }; const svgsNeeded = ['Checkmark', 'Clear', 'EyeOff', 'Flag', 'Pencil', 'Trash', 'Plus']; const svgsUrls = svgsNeeded.map(svgName => {