We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd76ff1 commit 93e5db1Copy full SHA for 93e5db1
.github/workflows/jsr.yml
@@ -1,4 +1,4 @@
1
-name: Publish
+name: Publish JSR
2
on:
3
push:
4
branches:
.github/workflows/npm.yml
@@ -0,0 +1,24 @@
+name: Publish NPM
+on:
+ push:
+ branches:
5
+ - main
6
+
7
+jobs:
8
+ publish:
9
+ runs-on: ubuntu-latest
10
11
+ permissions:
12
+ contents: read
13
+ id-token: write
14
15
+ steps:
16
+ - uses: actions/checkout@v4
17
18
+ - uses: actions/setup-node@v4
19
+ with:
20
+ node-version: '22.x'
21
+ registry-url: 'https://registry.npmjs.org'
22
+ - run: npm publish --provenance --access public
23
+ env:
24
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
package.json
@@ -19,6 +19,9 @@
"types": "src/types.ts",
"files": [
"src",
- "mod.ts"
+ "mod.ts",
+ "package.json",
+ "LICENSE",
25
+ "README.md"
26
]
27
}
0 commit comments