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