Skip to content

Commit df03cf0

Browse files
committed
chore: bump versions, fix #4
1 parent 87c1455 commit df03cf0

4 files changed

Lines changed: 44 additions & 17 deletions

File tree

.github/workflows/build.yml

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ jobs:
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
@@ -43,3 +43,30 @@ jobs:
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

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
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",

packages/core/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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",
@@ -48,16 +48,16 @@
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
}

packages/temp/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@
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
}

0 commit comments

Comments
 (0)