Skip to content

Commit 1f830f6

Browse files
sugyanclaude
andauthored
Fix release workflow by reordering version.ts generation before Deno dependency caching (#317)
The release workflow was failing because it tried to cache Deno dependencies before generating the required version.ts file. This caused a "Module not found" error when TypeScript tried to resolve the version.ts import in args.ts. Changes: - Move Node.js setup, frontend build, and version.ts generation before Deno setup - Keep Deno dependency caching after version.ts is available - Maintain the same build order but fix the dependency issue 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Claude <[email protected]>
1 parent 5d91127 commit 1f830f6

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,6 @@ jobs:
3131
- name: Checkout code
3232
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
3333

34-
- name: Setup Deno
35-
uses: denoland/setup-deno@e95548e56dfa95d4e1a28d6f422fafe75c4c26fb # v2.0.3
36-
with:
37-
deno-version: v2.x
38-
39-
- name: Install and cache Deno dependencies
40-
run: deno install && deno cache cli/deno.ts
41-
working-directory: backend
42-
4334
- name: Setup Node.js
4435
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
4536
with:
@@ -63,6 +54,15 @@ jobs:
6354
run: node scripts/generate-version.js
6455
working-directory: backend
6556

57+
- name: Setup Deno
58+
uses: denoland/setup-deno@e95548e56dfa95d4e1a28d6f422fafe75c4c26fb # v2.0.3
59+
with:
60+
deno-version: v2.x
61+
62+
- name: Install and cache Deno dependencies
63+
run: deno install && deno cache cli/deno.ts
64+
working-directory: backend
65+
6666
- name: Build backend binary
6767
run: deno compile --allow-net --allow-run --allow-read --allow-write --allow-env --allow-sys --include ./dist/static --target ${{ matrix.target }} --output ../dist/${{ matrix.artifact_name }} cli/deno.ts
6868
working-directory: backend

0 commit comments

Comments
 (0)