diff --git a/.github/workflows/publish-jsr.yml b/.github/workflows/publish-jsr.yml new file mode 100644 index 0000000..4268edd --- /dev/null +++ b/.github/workflows/publish-jsr.yml @@ -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 diff --git a/jsr.json b/jsr.json new file mode 100644 index 0000000..755a20b --- /dev/null +++ b/jsr.json @@ -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" +}