From 2d22d4063d85c898da6160d5b72fa31f20a204a4 Mon Sep 17 00:00:00 2001 From: Yusuke Wada Date: Fri, 24 Jul 2026 09:38:51 +0900 Subject: [PATCH 1/5] 1.19.15 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d8544618..f116fc34 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hono/node-server", - "version": "1.19.14", + "version": "1.19.15", "description": "Node.js Adapter for Hono", "main": "dist/index.js", "types": "dist/index.d.ts", From 149cc48fd9e4bad2dab2bdfe5414d505c86cae22 Mon Sep 17 00:00:00 2001 From: Yusuke Wada Date: Mon, 27 Jul 2026 11:38:03 +0900 Subject: [PATCH 2/5] ci: add an action for trusted publisher --- .github/workflows/release.yml | 30 ++++++++++++++++++++++++++++++ package.json | 2 +- test/serve-static.test.ts | 1 - 3 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..e6e1d152 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,30 @@ +name: release + +on: + push: + tags: + - '*' + +permissions: + contents: read + +jobs: + npm: + name: publish-to-npm + runs-on: ubuntu-latest + + permissions: + contents: read + id-token: write + + steps: + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 + - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6 + with: + node-version: 24.x + registry-url: 'https://registry.npmjs.org' + - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0 + - run: bun install + - run: bun run build + - name: Publish to npm + run: npm publish --tag latest-1 diff --git a/package.json b/package.json index f116fc34..cb03b581 100644 --- a/package.json +++ b/package.json @@ -59,7 +59,7 @@ "watch": "tsup --watch", "postbuild": "publint", "prerelease": "bun run build && bun run test", - "release": "np", + "release": "np --no-publish --branch v1.x", "lint": "eslint src test", "lint:fix": "eslint src test --fix", "format": "prettier --check \"src/**/*.{js,ts}\" \"test/**/*.{js,ts}\"", diff --git a/test/serve-static.test.ts b/test/serve-static.test.ts index 1666f688..3816b812 100644 --- a/test/serve-static.test.ts +++ b/test/serve-static.test.ts @@ -439,7 +439,6 @@ describe('Serve Static Middleware with wrong path', () => { ) expect(logSpy).toHaveBeenCalledWith( - // eslint-disable-next-line quotes "serveStatic: root path './public' is not found, are you sure it's correct?" ) }) From e4a5746ea01635f757900152af4960afeddc0482 Mon Sep 17 00:00:00 2001 From: Yusuke Wada Date: Mon, 27 Jul 2026 11:40:49 +0900 Subject: [PATCH 3/5] format --- test/serve-static.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/serve-static.test.ts b/test/serve-static.test.ts index 3816b812..bf71ca28 100644 --- a/test/serve-static.test.ts +++ b/test/serve-static.test.ts @@ -439,7 +439,7 @@ describe('Serve Static Middleware with wrong path', () => { ) expect(logSpy).toHaveBeenCalledWith( - "serveStatic: root path './public' is not found, are you sure it's correct?" + 'serveStatic: root path \'./public\' is not found, are you sure it\'s correct?' ) }) }) From 8607bebc5b691840732246cb8f6cf325d352f0ae Mon Sep 17 00:00:00 2001 From: Yusuke Wada Date: Mon, 27 Jul 2026 11:41:36 +0900 Subject: [PATCH 4/5] format --- test/serve-static.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/serve-static.test.ts b/test/serve-static.test.ts index bf71ca28..3816b812 100644 --- a/test/serve-static.test.ts +++ b/test/serve-static.test.ts @@ -439,7 +439,7 @@ describe('Serve Static Middleware with wrong path', () => { ) expect(logSpy).toHaveBeenCalledWith( - 'serveStatic: root path \'./public\' is not found, are you sure it\'s correct?' + "serveStatic: root path './public' is not found, are you sure it's correct?" ) }) }) From ac7d43bd92e13427fcc1933685be268146360a0b Mon Sep 17 00:00:00 2001 From: Yusuke Wada Date: Mon, 27 Jul 2026 11:43:49 +0900 Subject: [PATCH 5/5] format --- test/serve-static.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/serve-static.test.ts b/test/serve-static.test.ts index 3816b812..ace005fd 100644 --- a/test/serve-static.test.ts +++ b/test/serve-static.test.ts @@ -437,8 +437,8 @@ describe('Serve Static Middleware with wrong path', () => { root: './public', }) ) - expect(logSpy).toHaveBeenCalledWith( + // eslint-disable-next-line quotes "serveStatic: root path './public' is not found, are you sure it's correct?" ) })