diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0abc8c2cc4..1e24b8ae7f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,6 +6,9 @@ name: Build on: pull_request: +env: + NODE_OPTIONS: "--max-old-space-size=4096" + jobs: build: name: Build and validate artifacts diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index 6534dd1a49..ed8d21c625 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -6,6 +6,9 @@ on: # Ensure only one workflow/job is publishing to npm at a time concurrency: publish-to-npm +env: + NODE_OPTIONS: "--max-old-space-size=4096" + jobs: prerelease: name: Changesets Prerelease diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4122bd009f..0ba64aede6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,6 +10,9 @@ on: # Ensure only one workflow/job is publishing to npm at a time concurrency: publish-to-npm +env: + NODE_OPTIONS: "--max-old-space-size=4096" + jobs: release: name: Release diff --git a/.github/workflows/snapshot.yml b/.github/workflows/snapshot.yml index c53ae65654..a1bbc284d7 100644 --- a/.github/workflows/snapshot.yml +++ b/.github/workflows/snapshot.yml @@ -13,6 +13,9 @@ on: # Ensure only one workflow/job is publishing to npm at a time concurrency: publish-to-npm +env: + NODE_OPTIONS: "--max-old-space-size=4096" + jobs: release-snapshot: name: Publish snapshot release to npm diff --git a/packages/cli/src/runDeploy.ts b/packages/cli/src/runDeploy.ts index 0f049b9f63..e0920733f3 100644 --- a/packages/cli/src/runDeploy.ts +++ b/packages/cli/src/runDeploy.ts @@ -140,7 +140,7 @@ export async function runDeploy(opts: DeployOptions): Promise { rpc, profile, opts.forgeScriptOptions, - opts.awsKmsKeyId !== undefined, + opts.kms ? true : false, ); } console.log(chalk.green("Deployment completed in", (Date.now() - startTime) / 1000, "seconds"));