From 4023eef7171818ad74312aa724c2e961d621f43d Mon Sep 17 00:00:00 2001 From: Gaubee Date: Mon, 12 Jan 2026 18:28:37 +0800 Subject: [PATCH] fix(ci): also preserve miniapps/*/dist directories --- .github/workflows/cd.yml | 4 ++-- .github/workflows/ci.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 26a80eef3..f2edfb1b5 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -50,12 +50,12 @@ jobs: # Self-hosted runners keep the workspace between runs; ensure clean checkout # Preserve caches and build artifacts for faster builds git reset --hard HEAD - git clean -fdx -e .turbo -e '**/.turbo' -e node_modules -e '**/node_modules' -e 'packages/*/dist' + git clean -fdx -e .turbo -e '**/.turbo' -e node_modules -e '**/node_modules' -e 'packages/*/dist' -e 'miniapps/*/dist' fi git fetch origin ${{ github.sha }} --depth=1 --tags git checkout -f ${{ github.sha }} git reset --hard HEAD - git clean -fdx -e .turbo -e '**/.turbo' -e node_modules -e '**/node_modules' -e 'packages/*/dist' + git clean -fdx -e .turbo -e '**/.turbo' -e node_modules -e '**/node_modules' -e 'packages/*/dist' -e 'miniapps/*/dist' - name: Determine channel id: channel diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fd88bd34d..b183e6878 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,12 +22,12 @@ jobs: # Self-hosted runners keep the workspace between runs; ensure clean checkout # Preserve caches and build artifacts for faster builds git reset --hard HEAD - git clean -fdx -e .turbo -e '**/.turbo' -e node_modules -e '**/node_modules' -e 'packages/*/dist' + git clean -fdx -e .turbo -e '**/.turbo' -e node_modules -e '**/node_modules' -e 'packages/*/dist' -e 'miniapps/*/dist' fi git fetch origin ${{ github.event.pull_request.head.sha || github.sha }} --depth=1 git checkout -f ${{ github.event.pull_request.head.sha || github.sha }} git reset --hard HEAD - git clean -fdx -e .turbo -e '**/.turbo' -e node_modules -e '**/node_modules' -e 'packages/*/dist' + git clean -fdx -e .turbo -e '**/.turbo' -e node_modules -e '**/node_modules' -e 'packages/*/dist' -e 'miniapps/*/dist' - name: Detect changes id: changes