From d1a5719cbc0c7664af0f48d58a77787fb9a08e7c Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 15 May 2023 13:08:36 +0100 Subject: [PATCH] ci: set max memory for nuxt2 release script globally --- .github/workflows/nuxt2-edge.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nuxt2-edge.yml b/.github/workflows/nuxt2-edge.yml index ac1e94a414..359270ad0b 100644 --- a/.github/workflows/nuxt2-edge.yml +++ b/.github/workflows/nuxt2-edge.yml @@ -5,6 +5,12 @@ on: schedule: - cron: '0 0 * * *' +# https://github.com/vitejs/vite/blob/main/.github/workflows/ci.yml +env: + # 7 GiB by default on GitHub, setting to 6 GiB + # https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources + NODE_OPTIONS: --max-old-space-size=6144 + jobs: nightly: if: github.repository_owner == 'nuxt' @@ -30,8 +36,6 @@ jobs: run: yarn run audit - name: build run: yarn test:fixtures -i - env: - NODE_OPTIONS: "--max_old_space_size=4096" - name: lint app run: yarn lint:app - name: test types