From 81d829cb954b5d38d181c3803225dd37ec613566 Mon Sep 17 00:00:00 2001 From: seonghobae Date: Tue, 25 Aug 2026 21:08:50 +0900 Subject: [PATCH] fix(frontend): approve pnpm 11 esbuild build --- .../workflows/repair-global-ask-pnpm-v2.yml | 80 ------------------- frontend/pnpm-workspace.yaml | 2 + 2 files changed, 2 insertions(+), 80 deletions(-) delete mode 100644 .github/workflows/repair-global-ask-pnpm-v2.yml create mode 100644 frontend/pnpm-workspace.yaml diff --git a/.github/workflows/repair-global-ask-pnpm-v2.yml b/.github/workflows/repair-global-ask-pnpm-v2.yml deleted file mode 100644 index a2ef5489f..000000000 --- a/.github/workflows/repair-global-ask-pnpm-v2.yml +++ /dev/null @@ -1,80 +0,0 @@ -name: Repair Global Ask pnpm provisioning deterministically - -on: - workflow_dispatch: - push: - branches: - - "feat/global-ask-public-claim-verification-v2200" - paths: - - ".github/workflows/repair-global-ask-pnpm-v2.yml" - -permissions: - contents: write - -concurrency: - group: repair-global-ask-pnpm-v2200-v2 - cancel-in-progress: false - -jobs: - repair: - name: Pin repository pnpm and re-arm product integration - runs-on: ubuntu-latest - steps: - - name: Checkout exact feature branch - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # actions/checkout@v7 - with: - ref: feat/global-ask-public-claim-verification-v2200 - fetch-depth: 0 - persist-credentials: true - - - name: Repair only the package-manager provisioning boundary - shell: bash - run: | - python - <<'PY' - from pathlib import Path - - workflow = Path('.github/workflows/apply-global-ask-public-verification-v2200.yml') - text = workflow.read_text(encoding='utf-8') - - actor_guard = " github.event.pull_request.head.repo.full_name == github.repository &&\n github.actor != 'github-actions[bot]'" - if actor_guard in text: - text = text.replace( - actor_guard, - " github.event.pull_request.head.repo.full_name == github.repository", - 1, - ) - - old_install = " corepack enable\n pnpm --dir frontend install --frozen-lockfile" - new_install = ( - " corepack enable\n" - " corepack prepare pnpm@9.15.9 --activate\n" - " test \"$(pnpm --version)\" = \"9.15.9\"\n" - " pnpm --dir frontend install --frozen-lockfile" - ) - if old_install in text: - text = text.replace(old_install, new_install, 1) - elif new_install not in text: - raise SystemExit('refusing to edit an unknown pnpm provisioning shape') - - if "github.actor != 'github-actions[bot]'" in text: - raise SystemExit('actor guard remains after repair') - if new_install not in text: - raise SystemExit('pinned pnpm provisioning was not installed') - - workflow.write_text(text, encoding='utf-8') - PY - - - name: Remove repair-only workflows and publish the narrow repair - shell: bash - run: | - rm -f .github/workflows/repair-global-ask-pnpm.yml - rm .github/workflows/repair-global-ask-pnpm-v2.yml - git config user.name "github-actions[bot]" - git config user.email "41898282+github-actions[bot]@users.noreply.github.com" - git add -A .github/workflows - git diff --cached --check - if git diff --cached --quiet; then - exit 0 - fi - git commit -m "ci: pin Global Ask pnpm provisioning" - git push origin HEAD:feat/global-ask-public-claim-verification-v2200 diff --git a/frontend/pnpm-workspace.yaml b/frontend/pnpm-workspace.yaml new file mode 100644 index 000000000..5ed0b5af0 --- /dev/null +++ b/frontend/pnpm-workspace.yaml @@ -0,0 +1,2 @@ +allowBuilds: + esbuild: true