From cfb3029c7f7e1425f4348b5413c21b917a57fa24 Mon Sep 17 00:00:00 2001 From: Arne Bahlo Date: Tue, 3 May 2022 13:57:07 +0200 Subject: [PATCH] Test build on node 15-17 --- .github/workflows/ci.yml | 10 ++++++++-- package.json | 4 ++-- 2 files changed, 10 insertions(+), 4 deletions(-) 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" },