From 03cbbb92980fee4fd16211767abb481b1729f315 Mon Sep 17 00:00:00 2001 From: Jason Gardner Date: Mon, 15 Jul 2024 11:59:29 -0500 Subject: [PATCH] ci: Rewrite Deploy imports --- .github/workflows/deno.yml | 9 ++++++--- .github/workflows/jsr.yml | 5 ++--- deno.json | 2 +- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/deno.yml b/.github/workflows/deno.yml index 980f0e5..3c43359 100644 --- a/.github/workflows/deno.yml +++ b/.github/workflows/deno.yml @@ -2,9 +2,9 @@ name: Deno Deploy on: push: - branches: ["deploy"] + branches: ["main"] pull_request: - branches: ["deploy"] + branches: ["main"] permissions: id-token: write @@ -24,7 +24,10 @@ jobs: mkdir -p ./dist bun build ./app/index.tsx > ./dist/bundle.js - run: bunx tailwindcss -i ./app/assets/style.css -o ./dist/style.css - + - name: Update deno.json + run: | + jq '.imports.imagescript = "https://deno.land/x/imagescript@1.3.0/mod.ts"' deno.json > deno.json.tmp + mv deno.json.tmp deno.json - name: Setup Deno uses: denoland/setup-deno@v1 with: diff --git a/.github/workflows/jsr.yml b/.github/workflows/jsr.yml index 46dfe0b..b77bb3d 100644 --- a/.github/workflows/jsr.yml +++ b/.github/workflows/jsr.yml @@ -1,8 +1,7 @@ -name: Publish +name: JSR Publish on: push: - branches: - - main + branches: ["main"] jobs: publish: diff --git a/deno.json b/deno.json index 743bcde..2eb3e63 100644 --- a/deno.json +++ b/deno.json @@ -23,7 +23,7 @@ }, "imports": { "@hono/hono": "jsr:@hono/hono@^4.4.11", - "imagescript": "https://deno.land/x/imagescript@1.3.0/mod.ts", + "imagescript": "npm:imagescript@1.3.0", "jszip": "npm:jszip@3.10.1", "nanoid": "npm:nanoid@5.0.7", "nbtify": "npm:nbtify@1.90.1",