From cd809466efa30df61bfd5223fcdb4574b9e88484 Mon Sep 17 00:00:00 2001 From: Adam DeHaven <2229946+adamdehaven@users.noreply.github.com> Date: Fri, 17 Dec 2021 16:59:28 -0500 Subject: [PATCH] chore(node): use node 14 (#458) * chore(node): use node 14 Use node 14 instead of node 12. * fix(nvmrc): update nvmrc Update version in nvmrc. * chore(actions): reference nvmrc in actions Utilize nvmrc node version value. * chore(actions): fix node variable Fix node variable in actions. * chore(action): fix Fix the action. --- .github/workflows/publish.yml | 16 ++++++++-------- .github/workflows/test.yml | 11 ++++++----- .nvmrc | 2 +- package.json | 2 +- 4 files changed, 16 insertions(+), 15 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c4e36e9862..a02d38fffe 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -9,15 +9,15 @@ on: jobs: test: runs-on: ubuntu-latest - strategy: - matrix: - node: [12.x] steps: - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node }} - uses: actions/setup-node@v1 + - name: Read .nvmrc + run: echo ::set-output name=NVMRC::$(cat .nvmrc) + id: nvm + - name: Use Node.js + uses: actions/setup-node@v2 with: - node-version: ${{ matrix.node }} + node-version: '${{ steps.nvm.outputs.NVMRC }}' - name: install and lint run: | yarn @@ -42,9 +42,9 @@ jobs: - uses: actions/checkout@v2 with: token: ${{ secrets.KONGPONENTS_BOT_PAT }} - - uses: actions/setup-node@v1 + - uses: actions/setup-node@v2 with: - node-version: 12.x + node-version: '${{ steps.nvm.outputs.NVMRC }}' - name: setup git run: | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c6345f7664..6bd653c7c4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,14 +11,15 @@ jobs: runs-on: ubuntu-latest strategy: fail-fast: false - matrix: - node: [12.x] steps: - uses: actions/checkout@v1 - - name: Use Node.js ${{ matrix.node }} - uses: actions/setup-node@v1 + - name: Read .nvmrc + run: echo ::set-output name=NVMRC::$(cat .nvmrc) + id: nvm + - name: Use Node.js + uses: actions/setup-node@v2 with: - node-version: ${{ matrix.node }} + node-version: '${{ steps.nvm.outputs.NVMRC }}' - name: install, lint run: | yarn install diff --git a/.nvmrc b/.nvmrc index f7fc567eee..ed9f5a0aff 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -12.22.5 \ No newline at end of file +14.18.2 diff --git a/package.json b/package.json index b40bb1e3d2..6c7da672de 100644 --- a/package.json +++ b/package.json @@ -83,7 +83,7 @@ "vue-uuid": "^2.0.2" }, "engines": { - "node": ">=12.20 <14" + "node": ">=14.8.2 <15" }, "jest": { "moduleFileExtensions": [