Skip to content

Commit

Permalink
ci: Rewrite Deploy imports
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonjgardner committed Jul 15, 2024
1 parent 8271eae commit 03cbbb9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/deno.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Deno Deploy

on:
push:
branches: ["deploy"]
branches: ["main"]
pull_request:
branches: ["deploy"]
branches: ["main"]

permissions:
id-token: write
Expand All @@ -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:
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/jsr.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: Publish
name: JSR Publish
on:
push:
branches:
- main
branches: ["main"]

jobs:
publish:
Expand Down
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 03cbbb9

Please sign in to comment.