Skip to content

Commit

Permalink
Publish to jsr
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Jan 2, 2025
1 parent 0e8cf9a commit 2cffdf5
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/publish-jsr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Publish package to jsr
on:
release:
types: [created]
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # v4
- run: npm install -g jsr
- run: jsr publish --allow-slow-types
24 changes: 24 additions & 0 deletions jsr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "@noble/post-quantum",
"version": "0.2.1",
"exports": {
".": "./src/index.ts",
"./_crystals": "./src/_crystals.ts",
"./ml-dsa": "./src/ml-dsa.ts",
"./ml-kem": "./src/ml-kem.ts",
"./slh-dsa": "./src/slh-dsa.ts",
"./utils": "./src/utils.ts"
},
"imports": {
"@noble/hashes": "jsr:@noble/hashes@1.6.1"
},
"publish": {
"include": [
"src",
"jsr.json",
"LICENSE",
"README.md"
]
},
"license": "MIT"
}

0 comments on commit 2cffdf5

Please sign in to comment.