chore: setting up for publishing on JSR

This commit is contained in:
Shibo Lyu 2024-09-24 03:13:07 +08:00
parent 50553085e7
commit 51f7a3cdd1
3 changed files with 25 additions and 0 deletions

16
.github/workflows/jsr-publish.yml vendored Normal file
View file

@ -0,0 +1,16 @@
name: Publish on JSR
on:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write # The OIDC ID token is used for authentication with JSR.
steps:
- uses: actions/checkout@v4
- run: npx jsr publish

View file

@ -1,4 +1,10 @@
{
"name": "@blah/core",
"version": "0.1.0",
"exports": {
"./crypto": "./crypto/mod.ts",
"./identity": "./identity/mod.ts"
},
"imports": {
"@deno/dnt": "jsr:@deno/dnt@^0.41.3",
"@std/expect": "jsr:@std/expect@^1.0.3",

3
identity/mod.ts Normal file
View file

@ -0,0 +1,3 @@
export * from "./actKey.ts";
export * from "./identityFile.ts";
export * from "./profile.ts";