From 19c5e71ece6bbc0706a5740beaaf8050279f1076 Mon Sep 17 00:00:00 2001 From: Nick De Villiers Date: Mon, 11 Dec 2023 15:20:42 +0000 Subject: [PATCH] build: use NodeJS v20 for production build of maas-ui (#5239) --- .github/workflows/upload.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/upload.yml b/.github/workflows/upload.yml index 1ac6d49f78..2a49567b54 100644 --- a/.github/workflows/upload.yml +++ b/.github/workflows/upload.yml @@ -12,9 +12,6 @@ jobs: env: PACKAGE_NAME: maas-ui-${{ github.sha }}.tar.gz REACT_APP_GIT_SHA: ${{ github.sha }} - strategy: - matrix: - node-version: [16.x] steps: - uses: actions/checkout@v4 - name: Get branch name @@ -25,10 +22,10 @@ jobs: with: path: "**/node_modules" key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} - - name: Use Node.js ${{ matrix.node-version }} + - name: Use Node.js from .nvmrc uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node-version }} + node-version-file: '.nvmrc' - name: Install if: steps.yarn-cache.outputs.cache-hit != 'true' run: CYPRESS_INSTALL_BINARY=0 yarn install