-
Notifications
You must be signed in to change notification settings - Fork 654
45 lines (37 loc) · 1.25 KB
/
deploy-search-worker.yml
File metadata and controls
45 lines (37 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: ⚙️ Deploy Search Worker
on:
workflow_call:
workflow_dispatch:
jobs:
deploy:
name: ⚙️ Deploy Search Worker
runs-on: ubuntu-latest
environment: search-worker-production
concurrency:
group: deploy-search-worker-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v6
- name: ⎔ Setup node
uses: actions/setup-node@v6
with:
node-version: 24
cache: npm
cache-dependency-path: package-lock.json
- name: 📥 Install search worker deps
run: npm ci --workspace=search-worker --include-workspace-root
- name: 🔬 Lint search worker
run: npm run lint --workspace search-worker
- name: ʦ Typecheck search worker
run: npm run typecheck --workspace search-worker
- name: 🧪 Test search worker
run: npm run test --workspace search-worker
- name: ☁️ Deploy via Wrangler
working-directory: services/search-worker
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
run: npm exec wrangler -- deploy