diff --git a/.github/workflows/build-lint-test.yml b/.github/workflows/build-lint-test.yml index 4a0f678..c0ded95 100644 --- a/.github/workflows/build-lint-test.yml +++ b/.github/workflows/build-lint-test.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-20.04 strategy: matrix: - node-version: [12.x, 14.x, 16.x] + node-version: [14.x, 16.x, 18.x] steps: - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} @@ -39,10 +39,12 @@ jobs: runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 - - name: Use Node.js v12 - uses: actions/setup-node@v2 + - name: Get Node.js version + id: nvm + run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc) + - uses: actions/setup-node@v2 with: - node-version: 12 + node-version: ${{ steps.nvm.outputs.NODE_VERSION }} - run: yarn --frozen-lockfile - run: yarn build - run: yarn setup:postinstall diff --git a/.nvmrc b/.nvmrc index dae199a..958b5a3 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v12 +v14 diff --git a/README.md b/README.md index 31615ae..28b5185 100644 --- a/README.md +++ b/README.md @@ -87,7 +87,7 @@ try { ### Setup -- Install [Node.js](https://nodejs.org) version 12 +- Install [Node.js](https://nodejs.org) version 14 - If you are using [nvm](https://github.com/creationix/nvm#installation) (recommended) running `nvm use` will automatically choose the right node version for you. - Install [Yarn v1](https://yarnpkg.com/en/docs/install) - Run `yarn setup` to install dependencies and run any requried post-install scripts diff --git a/package.json b/package.json index 4afde3f..370a8cc 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "main": "dist/index.js", "bin": "dist/cli.js", "engines": { - "node": ">=12.0.0" + "node": ">=14.0.0" }, "files": [ "dist/"