Skip to content

Commit de9f482

Browse files
committed
fix: jq does not support jsonc natively
1 parent 559ede8 commit de9f482

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
DB_ID: ${{ secrets.CLOUDFLARE_D1_DATABASE_ID }}
5151
run: |
5252
# Use jq to update the database_id inside the d1_databases array
53-
jq '.d1_databases[0].database_id = env.DB_ID' wrangler.jsonc > wrangler.json.tmp
53+
npx strip-json-comments-cli wrangler.jsonc | jq '.d1_databases[0].database_id = env.DB_ID' wrangler.jsonc > wrangler.json.tmp
5454
5555
# Replace the old file with the newly updated one
5656
mv wrangler.json.tmp wrangler.jsonc

0 commit comments

Comments
 (0)