From 5055db8fd0537921d2f473be205b0bf96da9d6ee Mon Sep 17 00:00:00 2001 From: Yun Feng Date: Wed, 1 Apr 2026 12:00:00 +0800 Subject: [PATCH] fix: CI hangs forever in the yarn [4/4] Building fresh packages... (#1696) * fix: CI hang forever in the yarn [4/4] Building fresh packages... --- .changeset/rich-scissors-hide.md | 2 ++ .github/workflows/ci-cd.yml | 12 ++++++++---- .github/workflows/release.yml | 2 ++ .github/workflows/style-check.yml | 6 ++++++ 4 files changed, 18 insertions(+), 4 deletions(-) create mode 100644 .changeset/rich-scissors-hide.md diff --git a/.changeset/rich-scissors-hide.md b/.changeset/rich-scissors-hide.md new file mode 100644 index 00000000..a845151c --- /dev/null +++ b/.changeset/rich-scissors-hide.md @@ -0,0 +1,2 @@ +--- +--- diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index cb43a726..f51b6283 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -25,6 +25,8 @@ jobs: - name: Install Dependencies run: yarn install --frozen-lockfile + env: + PUPPETEER_DOWNLOAD_BASE_URL: 'https://storage.googleapis.com/chrome-for-testing-public' - name: Build Project run: NODE_OPTIONS='--max-old-space-size=4096' yarn build:all @@ -39,10 +41,12 @@ jobs: - name: Check bundle sizes uses: preactjs/compressed-size-action@v2 with: - install-script: "yarn install --frozen-lockfile" - build-script: "build:all" - compression: "none" - pattern: "**/dist/*.{js,cjs,mjs,css}" + install-script: 'yarn install --frozen-lockfile' + build-script: 'build:all' + compression: 'none' + pattern: '**/dist/*.{js,cjs,mjs,css}' + env: + PUPPETEER_SKIP_DOWNLOAD: true - name: Upload diff images to GitHub uses: actions/upload-artifact@v4 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5ba49c81..a3515213 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,6 +22,8 @@ jobs: - name: Install Dependencies run: yarn install --frozen-lockfile + env: + PUPPETEER_SKIP_DOWNLOAD: true - name: Create Release Pull Request or Publish to npm id: changesets diff --git a/.github/workflows/style-check.yml b/.github/workflows/style-check.yml index 4dfb4340..a37b1a45 100644 --- a/.github/workflows/style-check.yml +++ b/.github/workflows/style-check.yml @@ -21,6 +21,8 @@ jobs: cache: 'yarn' - name: Install Dependencies run: yarn install --frozen-lockfile + env: + PUPPETEER_SKIP_DOWNLOAD: true - name: Build Packages run: NODE_OPTIONS='--max-old-space-size=4096' yarn build:all - name: Eslint Check @@ -72,6 +74,8 @@ jobs: cache: 'yarn' - name: Install Dependencies run: yarn install --frozen-lockfile + env: + PUPPETEER_SKIP_DOWNLOAD: true - name: Prettier Check run: yarn prettier --check '**/*.{ts,md}' @@ -94,6 +98,8 @@ jobs: cache: 'yarn' - name: Install Dependencies run: yarn install --frozen-lockfile + env: + PUPPETEER_SKIP_DOWNLOAD: true - name: Prettify Code run: yarn prettier --write '**/*.{ts,md}' - name: Commit Changes