Skip to content

Commit 6d31704

Browse files
committed
feat: publish to jsr
1 parent 23259b5 commit 6d31704

File tree

2 files changed

+35
-4
lines changed

2 files changed

+35
-4
lines changed

.github/workflows/release.yml

+10-4
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@ jobs:
1212
contents: write
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
15+
- uses: actions/checkout@v4
1616
with:
1717
fetch-depth: 0
1818

1919
- name: Setup pnpm
2020
uses: pnpm/action-setup@v4
2121

22-
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
22+
- name: Setup node
23+
uses: actions/setup-node@v4
2324
with:
24-
node-version: 18
25-
cache: pnpm
2625
registry-url: "https://registry.npmjs.org"
26+
node-version: 20
2727

2828
- run: pnpx changelogithub
2929
env:
@@ -40,3 +40,9 @@ jobs:
4040
env:
4141
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4242
NPM_CONFIG_PROVENANCE: true
43+
44+
- name: Publish to JSR
45+
run: npx jsr publish --allow-dirty
46+
47+
- name: Print Dirty Files
48+
run: git status --porcelain

jsr.json

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"name": "@luxass/unplugin-yaml",
3+
"version": "0.1.1",
4+
"exports": {
5+
".": "./src/index.ts",
6+
"./astro": "./src/astro.ts",
7+
"./farm": "./src/farm.ts",
8+
"./rspack": "./src/rspack.ts",
9+
"./rolldown": "./src/rolldown.ts",
10+
"./rollup": "./src/rollup.ts",
11+
"./vite": "./src/vite.ts",
12+
"./webpack": "./src/webpack.ts",
13+
"./esbuild": "./src/esbuild.ts",
14+
"./nuxt": "./src/nuxt.ts"
15+
},
16+
"exclude": [
17+
"tsup.config.ts",
18+
"eslint.config.js",
19+
"pnpm-lock.yaml",
20+
"tests",
21+
".github/**",
22+
".nvmrc",
23+
"tsconfig.json"
24+
]
25+
}

0 commit comments

Comments
 (0)