From ded3c4a0f37bf0607b9297eda3e0f74ecd13a184 Mon Sep 17 00:00:00 2001 From: Yuliang Weng <59968766+yld-weng@users.noreply.github.com> Date: Fri, 25 Mar 2022 11:25:16 +0000 Subject: [PATCH] ci: change runner [skip ci] --- .github/workflows/ci.yml | 3 ++- .github/workflows/deploy-qa.yml | 8 ++++---- gatsby-config.js | 9 ++++++++- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c90bdde56..f97188966 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -74,8 +74,9 @@ jobs: # Enable incremental build - name: Incremental build - run: NODE_OPTIONS=--max_old_space_size=4096 npm run build:noGA + run: npm run build:noGA env: + NODE_OPTIONS: "--max-old-space-size=8192" EVENT_API_KEY_1: ${{ secrets.EVENT_API_KEY_1 }} EVENT_API_KEY_2: ${{ secrets.EVENT_API_KEY_2 }} EVENT_ORG_ID_1: ${{ secrets.EVENT_ORG_ID_1 }} diff --git a/.github/workflows/deploy-qa.yml b/.github/workflows/deploy-qa.yml index 62bdabc4b..771cae9b7 100644 --- a/.github/workflows/deploy-qa.yml +++ b/.github/workflows/deploy-qa.yml @@ -16,7 +16,7 @@ on: jobs: Deploy-QA: - runs-on: ubuntu-latest + runs-on: windows-2019 defaults: run: shell: bash @@ -43,8 +43,8 @@ jobs: path: | public .cache - key: ${{ runner.os }}-gatsby-v4-qa-${{ github.run_id }} - restore-keys: ${{ runner.os }}-gatsby-v4-qa- + key: ${{ runner.os }}-v4-gatsby-qa-${{ github.run_id }} + restore-keys: ${{ runner.os }}-v4-gatsby-qa- - name: Install dependencies run: npm ci @@ -59,7 +59,7 @@ jobs: npm run build:qa rm -f public/CNAME env: - NODE_OPTIONS: '--max_old_space_size=4096' + NODE_OPTIONS: "--max-old-space-size=8192" EVENT_API_KEY_1: ${{ secrets.EVENT_API_KEY_1 }} EVENT_API_KEY_2: ${{ secrets.EVENT_API_KEY_2 }} EVENT_ORG_ID_1: ${{ secrets.EVENT_ORG_ID_1 }} diff --git a/gatsby-config.js b/gatsby-config.js index 29f5692c2..2f08f7a91 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -210,7 +210,14 @@ module.exports = { cache_busting_mode: "none" // Work with offline plugin } }, - `gatsby-plugin-offline`, // should be listed after the manifest plugin + { + resolve: `gatsby-plugin-offline`, + options: { + workboxConfig: { + maximumFileSizeToCacheInBytes: 20971520 + }, + }, + }, // should be listed after the manifest plugin "gatsby-plugin-postcss", /***************** FLEXSEARCH ********************/ {