File tree 4 files changed +47
-1
lines changed
4 files changed +47
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Build package
2
+ on :
3
+ push :
4
+ branches : [main]
5
+ jobs :
6
+ build :
7
+ runs-on : ubuntu-latest
8
+ permissions :
9
+ contents : read
10
+ packages : write
11
+ steps :
12
+ - uses : actions/checkout@v4
13
+ - uses : actions/setup-node@v4
14
+ with :
15
+ node-version : " 20.x"
16
+ - uses : pnpm/action-setup@v4
17
+ - run : pnpm install
18
+ - run : pnpm build
Original file line number Diff line number Diff line change
1
+ name : Publish package
2
+ on :
3
+ release :
4
+ types : [published]
5
+ workflow_dispatch : {}
6
+ jobs :
7
+ build :
8
+ runs-on : ubuntu-latest
9
+ permissions :
10
+ contents : read
11
+ packages : write
12
+ steps :
13
+ - uses : actions/checkout@v4
14
+ - uses : actions/setup-node@v4
15
+ with :
16
+ node-version : " 20.x"
17
+ registry-url : " https://npm.pkg.github.com"
18
+ - uses : pnpm/action-setup@v4
19
+ - run : pnpm install
20
+ - run : pnpm build
21
+ - run : pnpm publish
22
+ env :
23
+ NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " @openrouter /markdown-wasm" ,
2
+ "name" : " @openrouterteam /markdown-wasm" ,
3
3
"version" : " 0.1.0" ,
4
4
"packageManager" :
" [email protected] +sha512.c753b6c3ad7afa13af388fa6d808035a008e30ea9993f58c6663e2bc5ff21679aa834db094987129aa4d488b86df57f7b634981b2f827cdcacc698cc0cfb88af" ,
5
5
"module" : " dist/main.mjs" ,
9
9
"scripts" : {
10
10
"build" : " cross-env TS_NODE_PROJECT=\" tsconfig.webpack-config.json\" webpack --config webpack.config.ts"
11
11
},
12
+ "repository" : {
13
+ "type" : " git" ,
14
+ "url" : " https://github.com/OpenRouterTeam/markdown-wasm.git"
15
+ },
12
16
"devDependencies" : {
13
17
"@types/node" : " ^22.13.4" ,
14
18
"@types/webpack" : " ^5.28.5" ,
Original file line number Diff line number Diff line change 3
3
# https://github.com/rustwasm/wasm-bindgen/issues/4211
4
4
channel = " 1.81.0"
5
5
targets = [" wasm32-unknown-unknown" ]
6
+ components = [" rust-src" ]
You can’t perform that action at this time.
0 commit comments