ci: fix fontend-ci.yml syntax error (#932)

* ci: fix fontend-ci.yml syntax error

* more to fix

* remove file foo
This commit is contained in:
SteveLauC
2025-10-19 16:35:37 +08:00
committed by GitHub
parent cd00ada3ac
commit f221606ae2

View File

@@ -33,7 +33,7 @@ jobs:
run: pnpm install --frozen-lockfile run: pnpm install --frozen-lockfile
- name: Switch platformAdapter to Web adapter - name: Switch platformAdapter to Web adapter
shell: bash shell: bash
run: > run: >
node -e "const fs=require('fs');const f='src/utils/platformAdapter.ts'; node -e "const fs=require('fs');const f='src/utils/platformAdapter.ts';
let s=fs.readFileSync(f,'utf8'); let s=fs.readFileSync(f,'utf8');
@@ -45,6 +45,7 @@ jobs:
run: pnpm build:web run: pnpm build:web
- name: Verify no Tauri refs in web output - name: Verify no Tauri refs in web output
shell: bash
run: | run: |
if grep -R -n -E '@tauri-apps|tauri-plugin' out/search-chat; then if grep -R -n -E '@tauri-apps|tauri-plugin' out/search-chat; then
echo 'Tauri references found in web build output'; echo 'Tauri references found in web build output';
@@ -54,6 +55,7 @@ jobs:
fi fi
- name: Restore platformAdapter to Tauri adapter - name: Restore platformAdapter to Tauri adapter
shell: bash
run: > run: >
node -e "const fs=require('fs');const f='src/utils/platformAdapter.ts'; node -e "const fs=require('fs');const f='src/utils/platformAdapter.ts';
let s=fs.readFileSync(f,'utf8'); let s=fs.readFileSync(f,'utf8');