Skip to content

Commit 21e33e1

Browse files
authored
chore: rework publish (#87)
1 parent d46250a commit 21e33e1

3 files changed

Lines changed: 31 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,5 @@ jobs:
5959
deno-version: v2.7.8
6060
- name: Build
6161
run: deno task build
62-
- name: Publish to JSR on tag
63-
run: deno run -A jsr:@david/publish-on-tag@0.2.0
62+
- name: Publish to JSR
63+
run: deno publish --dry-run

.github/workflows/publish.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
jsr:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
id-token: write
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
submodules: true
18+
- uses: denoland/setup-deno@v2
19+
with:
20+
# Pinned to avoid TLS panic in `deno sandbox copy/extend` (regression
21+
# present in at least v2.7.13 and v2.7.14; v2.7.8 is the last version
22+
# confirmed working). See https://github.com/denoland/deno/issues/33713
23+
# — unpin once fixed upstream.
24+
deno-version: v2.7.8
25+
- name: Build
26+
run: deno task build
27+
- name: Publish to JSR
28+
run: deno publish

deno.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"astro-demo"
55
],
66
"name": "@deno/deploy",
7+
"version": "0.0.98",
78
"license": "MIT",
89
"tasks": {
910
"build": "deno run -A jsr:@deno/wasmbuild@0.19.2"

0 commit comments

Comments
 (0)