From 2ff6c7297ef6b1309966d1d94bef79b32517dbd1 Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Mon, 22 Jan 2024 10:00:52 +1300 Subject: [PATCH] ci: use Node v20 and enable strict engine checks (#303) Strict engine checks are only for our CI - it doesn't impact consumers of the actual package, but will ensure updates like #302 will fail CI --- .github/workflows/checks.yaml | 8 ++++---- .github/workflows/release.yaml | 2 +- .npmrc | 1 + 3 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 .npmrc diff --git a/.github/workflows/checks.yaml b/.github/workflows/checks.yaml index 70ec970..6433a1a 100644 --- a/.github/workflows/checks.yaml +++ b/.github/workflows/checks.yaml @@ -25,7 +25,7 @@ jobs: fetch-depth: 0 - uses: actions/setup-node@v4 with: - node-version: 18.x + node-version: 20.x cache: npm - name: install run: npm ci @@ -49,7 +49,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 18.x + node-version: 20.x cache: npm - run: npm ci @@ -66,7 +66,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 18.x + node-version: 20.x cache: npm - run: npm ci @@ -82,7 +82,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 18.x + node-version: 20.x cache: npm - run: npm ci diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 35f2dae..555322b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -16,7 +16,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 18.x + node-version: 20.x cache: npm - name: install diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..b6f27f1 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +engine-strict=true