You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
message_template: "worker-app: {{repo}}@{{short_sha}} on {{branch}} (run {{run_number}})"
406
-
```
407
359
408
-
## Notes
360
+
In a monorepo, you often want to:
361
+
362
+
- Only run builds/deploys when a specific app/package directory changes.
363
+
- Use a config file that lives within that directory.
409
364
410
-
- This Action focuses on being:
411
-
- Explicit about config (`config` input).
412
-
- Clear about which args go to upload vs deploy.
413
-
- Purpose-built for Wrangler v4’s Versions API.
414
-
- If Wrangler’s output format changes:
415
-
- `deployment_url` parsing is best-effort.
416
-
- `version_id` parsing is based on the standard `Worker Version ID:` line.
417
-
- For GitHub Marketplace:
418
-
- Reference it as `your-org/wrangler-version-deploy-action-with-metadata@v1`.
419
-
- Keep a `v1` tag pointing at the latest stable release.
365
+
This example:
366
+
367
+
- Triggers only when files under `apps/worker-app/` change.
368
+
- Uses the Wrangler config at `apps/worker-app/wrangler.toml`.
369
+
- Builds and deploys only that app.
370
+
371
+
```yaml
372
+
name: Deploy Worker App (Monorepo)
420
373
421
-
If you have real Wrangler output samples and want to harden the parsing further, you can refine this Action’s internals without changing the public interface described here.
374
+
on:
375
+
push:
376
+
branches: [main]
377
+
paths:
378
+
- "apps/worker-app/**"
379
+
380
+
jobs:
381
+
deploy-worker-app:
382
+
runs-on: ubuntu-latest
383
+
defaults:
384
+
run:
385
+
working-directory: apps/worker-app
386
+
387
+
steps:
388
+
- uses: actions/checkout@v4
389
+
390
+
# Install and build only this app
391
+
# - run: pnpm install
392
+
# - run: pnpm build
393
+
394
+
name: Upload + deploy worker-app via Versions API with metadata
0 commit comments