+19
-2
.github/workflows/publish-jsr.yml
+19
-2
.github/workflows/publish-jsr.yml
···
13
13
contents: read
14
14
id-token: write # The OIDC ID token is used for authentication with JSR.
15
15
steps:
16
-
- uses: actions/checkout@v4
17
-
- run: npx jsr publish
16
+
- name: Checkout
17
+
uses: actions/checkout@v4
18
+
- uses: pnpm/action-setup@v4
19
+
name: Install pnpm
20
+
with:
21
+
version: 9
22
+
run_install: false
23
+
- name: Install Node.js
24
+
uses: actions/setup-node@v3
25
+
with:
26
+
node-version: 24
27
+
cache: pnpm
28
+
- name: Install dependencies
29
+
run: pnpm install --frozen-lockfile
30
+
- name: Build
31
+
run: pnpm build
32
+
working-directory: lib
33
+
- name: Publish to JSR
34
+
run: npx jsr publish
18
35
working-directory: lib
+4
-2
lib/deno.json
+4
-2
lib/deno.json
···
1
1
{
2
2
"name": "@voltx/core",
3
3
"version": "0.3.0",
4
-
"exports": "./src/index.ts",
4
+
"license": "MIT",
5
+
"exports": { ".": "./src/index.ts", "./debug": "./src/debug.ts", "./css": "./dist/voltx.css" },
5
6
"imports": {
6
7
"$core/": "./src/core/",
7
8
"$plugins/": "./src/plugins/",
···
9
10
"$debug": "./src/debug.ts",
10
11
"$vebug": "./src/debug.ts",
11
12
"$volt": "./src/index.ts"
12
-
}
13
+
},
14
+
"publish": { "include": ["dist", "README.md", "LICENSE"] }
13
15
}
+1
-1
lib/jsr.json
+1
-1
lib/jsr.json