mirror of
https://github.com/kunkunsh/kunkun-ext-jwt.git
synced 2025-03-31 09:06:42 +00:00
ci: enable jsr
This commit is contained in:
parent
07ca35a253
commit
be1246bf76
23
.github/workflows/jsr-publish.yml
vendored
Normal file
23
.github/workflows/jsr-publish.yml
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
name: JSR Publish
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
id-token: write
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: oven-sh/setup-bun@v2
|
||||
- name: Install dependencies
|
||||
run: bun install
|
||||
- name: Build
|
||||
run: bun run build
|
||||
- name: Publish package
|
||||
run: npx jsr publish
|
8
.github/workflows/npm-publish.yml
vendored
8
.github/workflows/npm-publish.yml
vendored
@ -22,13 +22,9 @@ jobs:
|
||||
with:
|
||||
node-version: 22
|
||||
registry-url: https://registry.npmjs.org/
|
||||
|
||||
- uses: pnpm/action-setup@v2
|
||||
with:
|
||||
version: latest
|
||||
- uses: oven-sh/setup-bun@v2
|
||||
- run: pnpm install
|
||||
- run: pnpm build
|
||||
- run: bun install
|
||||
- run: bun run build
|
||||
- run: |
|
||||
PACKAGE_NAME=$(jq -r '.name' package.json)
|
||||
PACKAGE_VERSION=$(jq -r '.version' package.json)
|
||||
|
9
jsr.json
Normal file
9
jsr.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"name": "@kunkun/kunkun-ext-jwt",
|
||||
"version": "0.1.0",
|
||||
"license": "MIT",
|
||||
"exports": "./mod.ts",
|
||||
"publish": {
|
||||
"include": ["build", "README.md", "package.json", "mod.ts"]
|
||||
}
|
||||
}
|
4420
pnpm-lock.yaml
generated
4420
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user