Add Dependabot config and simplify deploy workflow

Introduces .github/dependabot.yml to automate dependency updates for npm and GitHub Actions. Streamlines the deploy job in depoly.yml by removing setup, install, lint, type-check, and test steps, focusing only on code checkout and deployment via Wrangler.
This commit is contained in:
xixu-me committed 2025-11-07 13:26:23 +08:00
1 parent 918b651697
commit 29c25f3a96
2 files changed
+46 -23

No files matched your search

+2 -23
View File
@@ -17,30 +17,9 @@ jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 60
name: Deploy to Cloudflare Workers
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run linter
run: npm run lint
- name: Run type check
run: npm run type-check
- name: Run tests
run: npm test
- name: Build & Deploy Worker
- uses: actions/checkout@v4
- name: Deploy Worker
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}