Skip to content

Commit

Permalink
chore(workers-shared): Configure GitHub Actions to deploy Router Worker
Browse files Browse the repository at this point in the history
  • Loading branch information
emily-shen authored and CarmenPopoviciu committed Sep 11, 2024
1 parent 4107f57 commit 70b569e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/workers-shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
"check:type": "pnpm run check:type:tests && tsc",
"check:type:tests": "tsc -p ./asset-worker/tests/tsconfig.json",
"clean": "rimraf dist",
"deploy": "pnpm run deploy:router-worker && pnpm run deploy:asset-worker",
"deploy:router-worker": "CLOUDFLARE_API_TOKEN=$WORKERS_DEPLOY_AND_CONFIG_CLOUDFLARE_API_TOKEN wrangler versions upload --experimental-versions -c router-worker/wrangler.toml",
"dev": "pnpm run clean && concurrently -n bundle:asset-worker,bundle:router-worker -c blue,magenta \"pnpm run bundle:asset-worker --watch\" \"pnpm run bundle:router-worker --watch\"",
"test": "vitest",
"test:ci": "pnpm run test run"
Expand Down
2 changes: 1 addition & 1 deletion packages/workers-shared/router-worker/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# `router-worker`

The Router Worker is a [Cloudflare Worker](https://developers.cloudflare.com/workers/) that is responsible for routing between a user worker and static assets in a Workers + Assets project.
The Router Worker is a [Cloudflare Worker](https://developers.cloudflare.com/workers/) that is responsible for routing between a user Worker and static assets in a Workers + Assets project.
2 changes: 2 additions & 0 deletions packages/workers-shared/router-worker/wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@
# (see packages/wrangler/src/dev/miniflare.ts -> buildMiniflareOptions())
##
name = "router-worker"
account_id = "0f1b8aa119a907021f659042f95ea9ba"
workers_dev = false
main = "src/index.ts"
compatibility_date = "2024-07-31"

0 comments on commit 70b569e

Please sign in to comment.