diff --git a/.circleci/config.yml b/.circleci/config.yml index bc1db679ec7d7..0605a0a0f4b96 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -23,31 +23,6 @@ aliases: - &attach_workspace at: build - - &process_artifacts - docker: *docker - environment: *environment - steps: - - checkout - - attach_workspace: *attach_workspace - - run: yarn workspaces info | head -n -1 > workspace_info.txt - - *restore_node_modules - - run: node ./scripts/rollup/consolidateBundleSizes.js - - run: ./scripts/circleci/pack_and_store_artifact.sh - - store_artifacts: - path: ./node_modules.tgz - - store_artifacts: - path: ./build.tgz - - store_artifacts: - path: ./build/bundle-sizes.json - - store_artifacts: - # TODO: Update release script to use local file instead of pulling - # from artifacts. - path: ./scripts/error-codes/codes.json - - persist_to_workspace: - root: build - paths: - - bundle-sizes.json - jobs: setup: docker: *docker @@ -282,11 +257,6 @@ jobs: cd packages/react-devtools-scheduling-profiler yarn vercel deploy dist --prod --confirm --token $SCHEDULING_PROFILER_DEPLOY_VERCEL_TOKEN - # These jobs are named differently so we can distinguish the stable and - # and experimental artifacts - process_artifacts: *process_artifacts - process_artifacts_experimental: *process_artifacts - yarn_lint_build: docker: *docker environment: *environment @@ -385,9 +355,6 @@ workflows: - RELEASE_CHANNEL_stable_yarn_build: requires: - setup - - process_artifacts: - requires: - - RELEASE_CHANNEL_stable_yarn_build - RELEASE_CHANNEL_stable_yarn_lint_build: requires: - RELEASE_CHANNEL_stable_yarn_build @@ -401,9 +368,6 @@ workflows: - yarn_build: requires: - setup - - process_artifacts_experimental: - requires: - - yarn_build - yarn_lint_build: requires: - yarn_build diff --git a/scripts/rollup/consolidateBundleSizes.js b/scripts/rollup/consolidateBundleSizes.js deleted file mode 100644 index eb245099ba0f5..0000000000000 --- a/scripts/rollup/consolidateBundleSizes.js +++ /dev/null @@ -1,25 +0,0 @@ -'use strict'; - -// Script that combines bundle size information for each build into a single -// JSON file for easier storage and processing. - -const fs = require('fs'); -const path = require('path'); - -const BUILD_DIR = path.join(__dirname, '../../build'); - -const filenames = fs.readdirSync(path.join(BUILD_DIR, 'sizes')); - -let bundleSizes = []; -for (let i = 0; i < filenames.length; i++) { - const filename = filenames[i]; - if (filename.endsWith('.json')) { - const json = fs.readFileSync(path.join(BUILD_DIR, 'sizes', filename)); - bundleSizes.push(...JSON.parse(json).bundleSizes); - } -} - -const outputFilename = path.join(BUILD_DIR, 'bundle-sizes.json'); -const outputContents = JSON.stringify({bundleSizes}, null, 2); - -fs.writeFileSync(outputFilename, outputContents);