Skip to content

Commit 266146b

Browse files
committed
ci: 移除构建过程中不必要的 .git 文件
1 parent 7f04749 commit 266146b

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,14 +164,14 @@ jobs:
164164
165165
git clone --depth 1 https://github.com/AQBot-Desktop/stream-monaco.git stream-monaco
166166
cd stream-monaco && pnpm install --frozen-lockfile && pnpm build
167-
rm -rf node_modules .git
167+
rm -rf .git
168168
cd ..
169169
170170
git clone --depth 1 -b aqbot-custom https://github.com/AQBot-Desktop/markstream-vue.git markstream-vue
171171
cd markstream-vue && pnpm install --frozen-lockfile
172172
pnpm run build:parser
173173
cd packages/markstream-react && pnpm build && cd ../..
174-
rm -rf node_modules packages/*/node_modules playground*/node_modules .git
174+
rm -rf .git playground*/node_modules
175175
cd ..
176176
177177
- name: Install frontend dependencies
@@ -297,14 +297,14 @@ jobs:
297297
298298
git clone --depth 1 https://github.com/AQBot-Desktop/stream-monaco.git stream-monaco
299299
cd stream-monaco && pnpm install --frozen-lockfile && pnpm build
300-
rm -rf node_modules .git
300+
rm -rf .git
301301
cd ..
302302
303303
git clone --depth 1 -b aqbot-custom https://github.com/AQBot-Desktop/markstream-vue.git markstream-vue
304304
cd markstream-vue && pnpm install --frozen-lockfile
305305
pnpm run build:parser
306306
cd packages/markstream-react && pnpm build && cd ../..
307-
rm -rf node_modules packages/*/node_modules playground*/node_modules .git
307+
rm -rf .git playground*/node_modules
308308
cd ..
309309
310310
- name: Install frontend dependencies

.github/workflows/test-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,14 @@ jobs:
7272
7373
git clone --depth 1 https://github.com/AQBot-Desktop/stream-monaco.git stream-monaco
7474
cd stream-monaco && pnpm install --frozen-lockfile && pnpm build
75-
rm -rf node_modules .git
75+
rm -rf .git
7676
cd ..
7777
7878
git clone --depth 1 -b aqbot-custom https://github.com/AQBot-Desktop/markstream-vue.git markstream-vue
7979
cd markstream-vue && pnpm install --frozen-lockfile
8080
pnpm run build:parser
8181
cd packages/markstream-react && pnpm build && cd ../..
82-
rm -rf node_modules packages/*/node_modules playground*/node_modules .git
82+
rm -rf .git playground*/node_modules
8383
cd ..
8484
8585
- name: Install frontend dependencies

.github/workflows/test-windows-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,14 @@ jobs:
7575
7676
git clone --depth 1 https://github.com/AQBot-Desktop/stream-monaco.git stream-monaco
7777
cd stream-monaco && pnpm install --frozen-lockfile && pnpm build
78-
rm -rf node_modules .git
78+
rm -rf .git
7979
cd ..
8080
8181
git clone --depth 1 -b aqbot-custom https://github.com/AQBot-Desktop/markstream-vue.git markstream-vue
8282
cd markstream-vue && pnpm install --frozen-lockfile
8383
pnpm run build:parser
8484
cd packages/markstream-react && pnpm build && cd ../..
85-
rm -rf node_modules packages/*/node_modules playground*/node_modules .git
85+
rm -rf .git playground*/node_modules
8686
cd ..
8787
8888
- name: Install frontend dependencies

0 commit comments

Comments
 (0)