File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010
1111 steps :
1212 - name : Check out
13- uses : actions/checkout@v4
13+ uses : actions/checkout@v6
1414 - name : Setup Node
15- uses : actions/setup-node@v4
15+ uses : actions/setup-node@v6
1616 - name : Install
1717 run : yarn --no-immutable
1818 - name : Build
@@ -24,13 +24,13 @@ jobs:
2424 strategy :
2525 fail-fast : false
2626 matrix :
27- node-version : [18, 20, 22]
27+ node-version : [20, 22]
2828
2929 steps :
3030 - name : Check out
31- uses : actions/checkout@v4
31+ uses : actions/checkout@v6
3232 - name : Set up Node
33- uses : actions/setup-node@v4
33+ uses : actions/setup-node@v6
3434 with :
3535 node-version : ${{ matrix.node-version }}
3636 - name : Install
4343 token : ${{ secrets.CODECOV_TOKEN }}
4444 file : ./coverage/coverage-final.json
4545 name : codecov
46+
47+ publish :
48+ needs : build
49+
50+ if : contains(fromJson('["refs/heads/main", "refs/heads/v0"]'), github.ref)
51+
52+ permissions :
53+ id-token : write
54+ contents : read
55+
56+ runs-on : ubuntu-latest
57+ steps :
58+ - name : Check out
59+ uses : actions/checkout@v6
60+ - name : Set up Node
61+ uses : actions/setup-node@v6
62+ - name : Enable Corepack
63+ run : corepack enable
64+ - name : Install
65+ run : yarn --no-immutable
66+ - name : Build
67+ run : yarn build
68+ - name : Publish
69+ run : |-
70+ yarn config set npmPublishProvenance true
71+ yarn config set npmRegistryServer https://registry.npmjs.org/
72+ yarn pub --debug
Original file line number Diff line number Diff line change 2020 },
2121 "devDependencies" : {
2222 "@types/mocha" : " ^9.1.1" ,
23- "@types/node" : " ^22.7.5 " ,
23+ "@types/node" : " ^25.0.3 " ,
2424 "c8" : " ^7.14.0" ,
25- "esbuild" : " ^0.23.1 " ,
26- "esbuild-register" : " ^3.5 .0" ,
25+ "esbuild" : " ^0.27.2 " ,
26+ "esbuild-register" : " ^3.6 .0" ,
2727 "mocha" : " ^9.2.2" ,
28- "shx" : " ^0.3.4 " ,
28+ "shx" : " ^0.4.0 " ,
2929 "typescript" : " ^5.6.2" ,
3030 "yakumo" : " ^1.0.0-beta.18" ,
3131 "yakumo-esbuild" : " ^1.0.0-beta.7" ,
Original file line number Diff line number Diff line change 11{
22 "name" : " @cordisjs/plugin-server" ,
33 "description" : " Server plugin for cordis" ,
4- "version" : " 0.2.7 " ,
4+ "version" : " 0.2.8 " ,
55 "type" : " module" ,
66 "main" : " lib/index.cjs" ,
77 "module" : " lib/index.mjs" ,
4848 },
4949 "dependencies" : {
5050 "@koa/router" : " ^10.1.1" ,
51- "@types/koa" : " * " ,
52- "@types/koa__router" : " * " ,
51+ "@types/koa" : " ^2 " ,
52+ "@types/koa__router" : " ^10 " ,
5353 "@types/ws" : " ^8.5.10" ,
54- "cosmokit" : " ^1.6.3 " ,
54+ "cosmokit" : " ^1.8.1 " ,
5555 "koa" : " ^2.15.2" ,
5656 "koa-body" : " ^6.0.1" ,
5757 "parseurl" : " ^1.3.3" ,
5858 "path-to-regexp" : " ^6.3.0" ,
5959 "reggol" : " ^1.7.1" ,
60- "schemastery" : " ^3.14.6 " ,
60+ "schemastery" : " ^3.17.2 " ,
6161 "ws" : " ^8.16.0"
6262 }
6363}
Original file line number Diff line number Diff line change 3030 ],
3131 "devDependencies" : {
3232 "@cordisjs/plugin-http" : " ^0.6.3" ,
33- "@cordisjs/plugin-server" : " ^0.2.7 " ,
33+ "@cordisjs/plugin-server" : " ^0.2.8 " ,
3434 "cordis" : " ^3.18.1"
3535 },
3636 "peerDependencies" : {
37- "@cordisjs/plugin-server" : " ^0.2.7 " ,
37+ "@cordisjs/plugin-server" : " ^0.2.8 " ,
3838 "cordis" : " ^3.18.1"
3939 },
4040 "dependencies" : {
41- "cosmokit" : " ^1.6.3 "
41+ "cosmokit" : " ^1.8.1 "
4242 }
4343}
You can’t perform that action at this time.
0 commit comments