mirror of
https://github.com/maigamo/Daily-Task-Auto-Generator.git
synced 2026-07-22 12:40:26 +00:00
fix:update workflows
This commit is contained in:
parent
94de5560c6
commit
32df0e1ddf
1 changed files with 12 additions and 1 deletions
13
.github/workflows/main.yml
vendored
13
.github/workflows/main.yml
vendored
|
|
@ -24,16 +24,27 @@ jobs:
|
|||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Check for forbidden console logs
|
||||
run: |
|
||||
if grep -rE 'console\.log|console\.warn|console\.error' src/; then
|
||||
echo "❌ 代码中包含 console.log/warn/error,禁止提交"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Type Check (non-strict)
|
||||
run: |
|
||||
echo "Running TypeScript check..."
|
||||
npx tsc --noEmit || echo "⚠️ TypeScript check failed, but continuing."
|
||||
|
||||
- name: Build plugin
|
||||
run: node esbuild.config.mjs production
|
||||
run: npm run build
|
||||
|
||||
- name: List files after build
|
||||
run: ls -lah
|
||||
|
||||
- name: Check output files
|
||||
run: |
|
||||
test -f main.js || (echo "❌ main.js not found after build" && exit 1)
|
||||
test -f manifest.json || (echo "❌ manifest.json not found" && exit 1)
|
||||
|
||||
- name: Enforce commit message format (push only)
|
||||
|
|
|
|||
Loading…
Reference in a new issue