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": [