From a45cbb5fb9e1cfe4321485b233d3b8b79dc9faba Mon Sep 17 00:00:00 2001 From: MantisClone Date: Mon, 24 Mar 2025 15:44:15 -0400 Subject: [PATCH 1/2] chore: add pr-comments workflow with default messages --- .github/workflows/pr-comments.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/pr-comments.yml diff --git a/.github/workflows/pr-comments.yml b/.github/workflows/pr-comments.yml new file mode 100644 index 0000000..da81854 --- /dev/null +++ b/.github/workflows/pr-comments.yml @@ -0,0 +1,15 @@ +name: PR Comments + +on: + pull_request_target: + types: [opened, ready_for_review, closed] + +jobs: + pr-comments: + name: PR Comments + uses: RequestNetwork/auto-comments/.github/workflows/pr-auto-comments.yml@main + with: + org_name: "RequestNetwork" + # Using default comments from the auto-comments workflow + secrets: + token: ${{ secrets.GH_PAT_AUTO_COMMENTS }} From 21f002468a66d117e4fe19baa6443f9ec301b446 Mon Sep 17 00:00:00 2001 From: MantisClone Date: Tue, 25 Mar 2025 13:56:30 -0400 Subject: [PATCH 2/2] fix: increase max-old-space-size to 15 GiB (#113) --- .github/workflows/build.yml | 14 +++++--------- nixpacks.toml | 4 +--- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4822aae..1d4b4b2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,10 +17,6 @@ concurrency: jobs: build: runs-on: ubuntu-latest - timeout-minutes: 15 - container: - image: node:18 - options: --memory=8g steps: - name: Checkout uses: actions/checkout@v4 @@ -41,12 +37,12 @@ jobs: - name: Build run: | - ulimit -S -c unlimited npm run build env: NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID }} - NODE_OPTIONS: "--max_old_space_size=7680" - NEXT_TELEMETRY_DISABLED: "1" - NPM_CONFIG_PRODUCTION: "false" NODE_ENV: "production" - timeout-minutes: 10 + + # Set --max_old_space_size to 15 GiB + # Default is 16 GiB. Leave 1 GiB for the system. + # Ref: https://docs.github.com/en/enterprise-cloud@latest/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories + NODE_OPTIONS: "--max-old-space-size=15360" diff --git a/nixpacks.toml b/nixpacks.toml index 85c5072..02547e3 100644 --- a/nixpacks.toml +++ b/nixpacks.toml @@ -20,9 +20,7 @@ cmd = 'npm start' [variables] NODE_ENV = 'production' -NODE_OPTIONS = '--max_old_space_size=2048' -NPM_CONFIG_PRODUCTION = 'false' -NEXT_TELEMETRY_DISABLED = '1' +NODE_OPTIONS = '--max-old-space-size=2048' [nixpacks] start-command = 'npm start'