diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5c2b97d1..6416a745 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,16 +13,22 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 17 - run: npm install - run: npm run check-format build: name: Build runs-on: ubuntu-latest + strategy: + matrix: + node: + - 15.x + - 16.x + - 17.x steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 16 + node-version: ${{ matrix.node }} - run: npm install - run: npm run build \ No newline at end of file diff --git a/package.json b/package.json index 133bf9ac..d0e80922 100644 --- a/package.json +++ b/package.json @@ -8,13 +8,13 @@ "Arne Bahlo " ], "engines": { - "node": ">=14" + "node": ">=15" }, "main": "index.js", "types": "index.d.ts", "scripts": { "build": "tsc", - "prepublish": "npm run build", + "prepare": "npm run build", "format": "prettier --write index.ts", "check-format": "prettier -c index.ts" },