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:
1 parent
755abc127d
commit
2774dabe27
2 files changed
+46
-23
No files matched your search
@@ -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 }}
|
||||
|
||||
Reference in new issue
Block a user