From e8d3540fb12353e42e2ee7a6218af6d6ae6f7b42 Mon Sep 17 00:00:00 2001 From: Vitor George Date: Tue, 2 Jan 2024 10:15:09 +0000 Subject: [PATCH 1/2] Upgrade Node.js to v18 --- .nvmrc | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.nvmrc b/.nvmrc index da2d3988..25bf17fc 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -14 \ No newline at end of file +18 \ No newline at end of file diff --git a/package.json b/package.json index e8bcf12b..7f9128a6 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "cy:run": "NODE_ENV=cypress cypress run --e2e --browser electron" }, "engines": { - "node": "14.x" + "node": "18.x" }, "browserify": { "transform": [ From 7bcad12820aab06ad3c55cc695e3f2f6b72c3dd9 Mon Sep 17 00:00:00 2001 From: Vitor George Date: Tue, 2 Jan 2024 10:21:35 +0000 Subject: [PATCH 2/2] Update Github workflows --- .github/workflows/checks.yml | 12 ++++++------ .github/workflows/deploy.yml | 19 ++++++++----------- 2 files changed, 14 insertions(+), 17 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index a274944a..e026fb51 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -22,10 +22,10 @@ jobs: - name: Checkout uses: actions/checkout@v2 - - name: Use Node.js 14 + - name: Use Node.js 18 uses: actions/setup-node@v1 with: - node-version: 14 + node-version: 18 - name: Cache node modules id: cache-node-modules @@ -60,10 +60,10 @@ jobs: - name: Checkout uses: actions/checkout@v2 - - name: Use Node.js 14 + - name: Use Node.js 18 uses: actions/setup-node@v1 with: - node-version: 14 + node-version: 18 - name: Cache node modules id: cache-node-modules @@ -101,10 +101,10 @@ jobs: - name: Checkout uses: actions/checkout@v2 - - name: Use Node.js 14 + - name: Use Node.js 18 uses: actions/setup-node@v1 with: - node-version: 14 + node-version: 18 - name: Cache node modules id: cache-node-modules diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 01ce5a55..13b5a8f2 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -26,12 +26,12 @@ jobs: - name: Checkout uses: actions/checkout@v2 - - - name: Use Node.js 14 + + - name: Use Node.js 18 uses: actions/setup-node@v1 with: - node-version: 14 - + node-version: 18 + - name: Cache node modules id: cache-node-modules uses: actions/cache@v2 @@ -44,7 +44,7 @@ jobs: ${{ runner.os }}-build-${{ env.cache-name }}- ${{ runner.os }}-build- ${{ runner.os }}- - + - name: Install if: steps.cache-node-modules.outputs.cache-hit != 'true' run: yarn install @@ -59,7 +59,7 @@ jobs: - name: Build Prod if: github.ref == 'refs/heads/main' run: yarn build - + - name: Azure Login if: github.ref == 'refs/heads/develop' uses: azure/login@v1 @@ -72,21 +72,19 @@ jobs: with: creds: ${{ secrets.AZURE_CREDENTIALS_PRODUCTION }} - - name: Upload to blob storage if: github.ref == 'refs/heads/develop' uses: azure/CLI@v1 with: inlineScript: | - az storage blob upload-batch --account-name $STAGING_STORAGE_ACCOUNT_NAME --overwrite -d '$web' -s ./dist + az storage blob upload-batch --account-name $STAGING_STORAGE_ACCOUNT_NAME --overwrite -d '$web' -s ./dist - name: Upload to blob storage if: github.ref == 'refs/heads/main' uses: azure/CLI@v1 with: inlineScript: | - az storage blob upload-batch --account-name $PRODUCTION_STORAGE_ACCOUNT_NAME --overwrite -d '$web' -s ./dist - + az storage blob upload-batch --account-name $PRODUCTION_STORAGE_ACCOUNT_NAME --overwrite -d '$web' -s ./dist - name: Purge CDN endpoint if: github.ref == 'refs/heads/develop' @@ -102,6 +100,5 @@ jobs: inlineScript: | az cdn endpoint purge --content-paths "/*" --profile-name $PRODUCTION_CDN_PROFILE_NAME --name $PRODUCTION_CDN_ENDPOINT --resource-group $PRODUCTION_RESOURCE_GROUP - - name: Azure Logout run: az logout