diff --git a/.circleci/config.yml b/.circleci/config.yml index 3f25c65e..a5198309 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -8,6 +8,7 @@ defaults: &defaults jobs: chromatic: <<: *defaults + resource_class: medium+ steps: - checkout - run: @@ -23,6 +24,7 @@ jobs: command: npm run chromatic -- --exit-zero-on-changes --auto-accept-changes=master environment: CI: 1 + NODE_OPTIONS: "--max-old-space-size=6144" - save_cache: name: Save chromatic cache key: storybook-cache--{{ .Branch }}--{{ checksum ".circleci/config.yml" }}--{{ epoch }} diff --git a/package.json b/package.json index f0d4da2a..88f7a90b 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "build:reset": "ts-node --transpile-only build-reset.ts", "prebundle": "run-p icons illustrations", "prebuild-storybook": "npm run build", - "build-storybook": "node --max-old-space-size=4096 $(npm bin)/build-storybook --static-dir .storybook/public --quiet", + "build-storybook": "build-storybook --static-dir .storybook/public --quiet", "build:github-checks": "npx ncc build .github/actions/run-circle-ci-job/index.js -o .github/actions/run-circle-ci-job/dist", "clean": "run-p clean:*", "clean:built": "ts-node --transpile-only scripts/cleanBuiltFiles.ts",