Skip to content

Commit 4f03f74

Browse files
committed
chore: publish on jsr
1 parent 9dc11c6 commit 4f03f74

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

.github/workflows/release.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,28 @@ jobs:
2424
- run: npx changelogithub
2525
env:
2626
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
27+
28+
publish-jsr:
29+
runs-on: ubuntu-latest
30+
31+
permissions:
32+
contents: read
33+
id-token: write
34+
35+
steps:
36+
- uses: actions/checkout@v4
37+
38+
- name: Setup pnpm
39+
run: corepack enable
40+
41+
- name: Set node
42+
uses: actions/setup-node@v4
43+
with:
44+
node-version: lts/*
45+
cache: pnpm
46+
47+
- name: Install
48+
run: pnpm i
49+
50+
- name: Publish package
51+
run: npx jsr publish

jsr.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"name": "@unplugin/isolated-decl",
3+
"version": "0.6.8",
4+
"exports": {
5+
"./index": "./src/index.ts",
6+
"./api": "./src/api.ts",
7+
"./esbuild": "./src/esbuild.ts",
8+
"./rollup": "./src/rollup.ts",
9+
"./rolldown": "./src/rolldown.ts",
10+
"./vite": "./src/vite.ts",
11+
"./farm": "./src/farm.ts"
12+
},
13+
"publish": {
14+
"include": [
15+
"src",
16+
"package.json",
17+
"jsr.json",
18+
"README.md",
19+
"LICENSE"
20+
]
21+
}
22+
}

0 commit comments

Comments
 (0)