Skip to content

Commit 86e96c2

Browse files
authored
ci: add an action for trusted publisher (#385)
* 1.19.15 * ci: add an action for trusted publisher * format * format * format
1 parent 99c1a1a commit 86e96c2

3 files changed

Lines changed: 32 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: release
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
npm:
13+
name: publish-to-npm
14+
runs-on: ubuntu-latest
15+
16+
permissions:
17+
contents: read
18+
id-token: write
19+
20+
steps:
21+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
22+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
23+
with:
24+
node-version: 24.x
25+
registry-url: 'https://registry.npmjs.org'
26+
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
27+
- run: bun install
28+
- run: bun run build
29+
- name: Publish to npm
30+
run: npm publish --tag latest-1

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hono/node-server",
3-
"version": "1.19.14",
3+
"version": "1.19.15",
44
"description": "Node.js Adapter for Hono",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
@@ -59,7 +59,7 @@
5959
"watch": "tsup --watch",
6060
"postbuild": "publint",
6161
"prerelease": "bun run build && bun run test",
62-
"release": "np",
62+
"release": "np --no-publish --branch v1.x",
6363
"lint": "eslint src test",
6464
"lint:fix": "eslint src test --fix",
6565
"format": "prettier --check \"src/**/*.{js,ts}\" \"test/**/*.{js,ts}\"",

test/serve-static.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,6 @@ describe('Serve Static Middleware with wrong path', () => {
437437
root: './public',
438438
})
439439
)
440-
441440
expect(logSpy).toHaveBeenCalledWith(
442441
// eslint-disable-next-line quotes
443442
"serveStatic: root path './public' is not found, are you sure it's correct?"

0 commit comments

Comments
 (0)