From 75146f2c903ca587dfc850371fe0881483973622 Mon Sep 17 00:00:00 2001 From: jankapunkt Date: Thu, 25 Aug 2022 10:12:07 +0200 Subject: [PATCH] fix(build): update node versions to be >=14 --- .github/workflows/tests-release.yml | 10 +++++----- .github/workflows/tests.yml | 2 +- package.json | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/tests-release.yml b/.github/workflows/tests-release.yml index 2615910..5130692 100644 --- a/.github/workflows/tests-release.yml +++ b/.github/workflows/tests-release.yml @@ -26,7 +26,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: '12' + node-version: '14' # install to create local package-lock.json but don't cache the files # also: no audit for dev dependencies - run: npm i --package-lock-only && npm audit --production @@ -40,7 +40,7 @@ jobs: needs: [audit] strategy: matrix: - node: [12, 14, 16] + node: [14, 16, 18] steps: - name: Checkout ${{ matrix.node }} uses: actions/checkout@v2 @@ -81,7 +81,7 @@ jobs: needs: [unittest] strategy: matrix: - node: [12, 14] # TODO get running for node 16 + node: [14, 16, 18] # TODO get running for node 16 steps: # checkout this repo - name: Checkout ${{ matrix.node }} @@ -125,7 +125,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: 12 + node-version: 14 registry-url: https://registry.npmjs.org/ - run: npm i - run: npm publish --dry-run @@ -143,7 +143,7 @@ jobs: - uses: actions/setup-node@v2 with: # we always publish targeting the lowest supported node version - node-version: 12 + node-version: 14 registry-url: $registry-url(npm) - run: npm i - run: npm publish --dry-run diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4726c73..08a6f94 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,7 +18,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node: [12, 14, 16] + node: [14, 16, 18] steps: - name: Checkout ${{ matrix.node }} uses: actions/checkout@v2 diff --git a/package.json b/package.json index cf4b2ba..d99b3eb 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ }, "license": "MIT", "engines": { - "node": ">=12.0.0" + "node": ">=14.0.0" }, "scripts": { "pretest": "./node_modules/.bin/eslint lib test index.js",