Skip to content

Commit 9e0e7cc

Browse files
committed
chore: dynamic package name in CI and bump to 2.2.8
1 parent c4aa708 commit 9e0e7cc

5 files changed

Lines changed: 13 additions & 9 deletions

File tree

.github/workflows/release-npm.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,14 @@ jobs:
116116
const fs = require('node:fs');
117117
118118
const version = process.env.GITHUB_REF_NAME.replace(/^v/, '');
119+
const packageJson = JSON.parse(fs.readFileSync('package.json', 'utf8'));
120+
const packageName = packageJson.name;
119121
const metadata = JSON.parse(
120122
execFileSync(
121123
'npm',
122124
[
123125
'view',
124-
`toolwall@${version}`,
126+
`${packageName}@${version}`,
125127
'version',
126128
'repository',
127129
'homepage',
@@ -153,6 +155,7 @@ jobs:
153155
'## published release identity',
154156
'',
155157
`- tag: \`${process.env.GITHUB_REF_NAME}\``,
158+
`- package name: \`${packageName}\``,
156159
`- package version: \`${metadata.version || version}\``,
157160
`- npm repository: \`${getField(metadata.repository)}\``,
158161
`- npm homepage: \`${getField(metadata.homepage)}\``,

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ All notable changes to this project will be documented in this file.
44
The format is based on Keep a Changelog and the project follows semantic versioning.
55

66

7-
## 2.2.7 - 2026-05-13
7+
## 2.2.8 - 2026-05-13
88
- Fixes critical security regression in stdio path (0 false negatives in benchmark)
99
- Aligns stdio and HTTP security validators (AST, Scope, Color, Preflight)
1010
- Adds persistent security event logging in SQLite (7-day history)
1111
- Implements resilient multi-target Gateway mode with Zod validation
1212
- Adds "Clear History" and Target Status indicators to UI Dashboard
13+
- Fixes release pipeline package-name lookup by reading the npm package name dynamically from package.json
1314

1415
## 2.2.6 - 2026-04-07
1516

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@maksiph14/toolwall",
3-
"version": "2.2.7",
3+
"version": "2.2.8",
44
"description": "Fail-closed stdio firewall for risky local MCP JSON-RPC tool calls",
55
"main": "dist/lib.js",
66
"exports": {

scripts/pack-smoke.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ const packageJsonPath = path.join(repoRoot, 'package.json');
1313
const demoTargetPath = path.join(repoRoot, 'examples', 'demo-target.js');
1414
const npmCliPath = path.join(path.dirname(process.execPath), 'node_modules', 'npm', 'bin', 'npm-cli.js');
1515
const npxCliPath = path.join(path.dirname(process.execPath), 'node_modules', 'npm', 'bin', 'npx-cli.js');
16-
const publishedCliName = 'toolwall';
1716
const tempPackDirPath = fs.mkdtempSync(path.join(os.tmpdir(), 'mcp-pack-smoke-'));
1817
const npmInvocation = process.platform === 'win32'
1918
? {
@@ -35,10 +34,11 @@ const npxInvocation = process.platform === 'win32'
3534
};
3635

3736
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8'));
37+
const publishedCliName = Object.keys(packageJson.bin ?? {})[0];
3838
const cliPath = packageJson.bin?.[publishedCliName];
3939

4040
if (typeof cliPath !== 'string') {
41-
throw new Error(`Missing ${publishedCliName} bin entry in package.json.`);
41+
throw new Error('Missing bin entry in package.json.');
4242
}
4343

4444
const formatFailure = (label, command, args, stdout, stderr, message) => {

0 commit comments

Comments
 (0)