diff --git a/.github/workflows/worker.yml b/.github/workflows/worker.yml index 847c2e8b..99729d47 100644 --- a/.github/workflows/worker.yml +++ b/.github/workflows/worker.yml @@ -76,9 +76,6 @@ jobs: - name: Get Wrangler args id: wrangler-args - # working-directory must be set to the root of the repository - # otherwise, mise run fails to execute the task - # ref: https://github.com/jdx/mise/issues/1660 run: | args=$(mise run worker:wrangler-args) echo "args=${args}" >> "${GITHUB_OUTPUT}" diff --git a/mise.toml b/mise.toml index ec50c7ce..b1959a16 100644 --- a/mise.toml +++ b/mise.toml @@ -168,9 +168,8 @@ hide = true [tasks."worker:dev"] depends = ["buni:worker"] -# use bun --cwd instead of dir to avoid mise tasks executed not in the root directory -# ref: https://github.com/jdx/mise/issues/1660 -run = "bun run --cwd worker wrangler dev $(mise run worker:wrangler-args)" +dir = "worker" +run = "bun run wrangler dev $(mise run worker:wrangler-args)" [tasks."worker:test"] depends = ["buni:worker"]