Skip to content

Commit c97dc0c

Browse files
committed
chore: set up JSR package configuration and publish workflow
1 parent 39b39b5 commit c97dc0c

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed

.github/workflows/jsr-publish.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Publish
2+
on:
3+
push:
4+
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+
- uses: oven-sh/setup-bun@v2
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: "22"
22+
- uses: oven-sh/setup-bun@v2
23+
- run: |
24+
bun install
25+
bun run build
26+
- name: Publish package
27+
run: bunx jsr publish

jsr.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"name": "@kunkun/kunkun-ext-youtube-downloader",
3+
"version": "0.1.0",
4+
"license": "MIT",
5+
"exports": "./mod.ts",
6+
"imports": {
7+
"@distube/yt-dlp": "npm:@distube/yt-dlp@^2.0.1",
8+
"@distube/ytdl-core": "npm:@distube/ytdl-core@^4.15.9",
9+
"@hk/photographer-toolbox": "jsr:@hk/photographer-toolbox@^0.1.12",
10+
"@kunkun/api": "jsr:@kunkun/api@^0.0.52",
11+
"@std/assert": "jsr:@std/assert@1",
12+
"fluent-ffmpeg": "npm:fluent-ffmpeg@^2.1.3"
13+
}
14+
}

mod.ts

Whitespace-only changes.

0 commit comments

Comments
 (0)