Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Deploy

on:
push:
branches: [main]
workflow_dispatch:

concurrency:
group: deploy-production
cancel-in-progress: false

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow or composite action Medium

Unpinned 3rd party Action 'Deploy' step
Uses Step
uses 'pnpm/action-setup' with ref 'v4', not a pinned commit hash
- uses: actions/setup-node@v4
with:
node-version: 24
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm run check
- run: pnpm run lint
- run: pnpm -r build
- run: pnpm --filter stack-dashboard run cf:deploy
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
- run: pnpm --filter stack-dashboard-cron run cf:deploy
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
Comment on lines +14 to +31
6 changes: 3 additions & 3 deletions apps/cron/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"scripts": {
"dev": "wrangler dev",
"check": "tsc --noEmit",
"deploy": "wrangler deploy --env=\"\"",
"deploy:preview": "wrangler deploy --env preview",
"cf-typegen": "wrangler types"
"cf:deploy": "wrangler deploy --env=\"\"",
"cf:deploy:preview": "wrangler deploy --env preview",
"cf:typegen": "wrangler types"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20260405.1",
Expand Down
2 changes: 0 additions & 2 deletions apps/dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
"cf:dev:remote": "pnpm run build && wrangler dev --remote",
"cf:deploy": "wrangler deploy --env=\"\"",
"cf:deploy:preview": "pnpm run build && wrangler deploy --env preview",
"deploy": "wrangler deploy --env=\"\"",
"deploy:preview": "wrangler deploy --env preview",
"email:dev": "bse dev -c src/routes/layout.css",
"prepare": "svelte-kit sync || echo ''",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"check": "pnpm -r check",
"lint": "pnpm -r lint",
"format": "pnpm -r format",
"deploy": "pnpm -r build && pnpm --filter stack-dashboard deploy && pnpm --filter stack-dashboard-cron deploy",
"deploy:preview": "pnpm -r build && pnpm --filter stack-dashboard deploy:preview && pnpm --filter stack-dashboard-cron deploy:preview",
"cf:deploy": "pnpm -r build && pnpm --filter stack-dashboard run cf:deploy && pnpm --filter stack-dashboard-cron run cf:deploy",
"cf:deploy:preview": "pnpm --filter stack-dashboard run cf:deploy:preview && pnpm --filter stack-dashboard-cron run cf:deploy:preview",
"dashboard": "pnpm --filter stack-dashboard",
"cron": "pnpm --filter stack-dashboard-cron"
}
Expand Down