Skip to content

Commit e01fa78

Browse files
RahulHereRahulHere
authored andcommitted
Release version 0.1.12.2
1 parent c227843 commit e01fa78

10 files changed

Lines changed: 61 additions & 44 deletions

File tree

.github/workflows/publish-packages.yml

Lines changed: 31 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
outputs:
2020
version: ${{ steps.version.outputs.version }}
2121
version_tag: ${{ steps.version.outputs.version_tag }}
22+
npm_version: ${{ steps.version.outputs.npm_version }}
2223
dry_run: ${{ steps.version.outputs.dry_run }}
2324
steps:
2425
- name: Checkout
@@ -29,18 +30,28 @@ jobs:
2930
run: |
3031
VERSION=$(node -p "require('./package.json').version")
3132
VERSION_TAG="v${VERSION}"
33+
# Strip optional .A suffix (X.Y.Z.A -> X.Y.Z) for gopher-orch release tag
34+
ORCH_VERSION=$(echo "$VERSION" | sed 's/^\([0-9]*\.[0-9]*\.[0-9]*\).*/\1/')
35+
ORCH_TAG="v${ORCH_VERSION}"
36+
# Convert X.Y.Z.A -> X.Y.Z-A for npm semver compatibility
37+
NPM_VERSION=$(echo "$VERSION" | sed 's/^\([0-9]*\.[0-9]*\.[0-9]*\)\.\([0-9]*\)$/\1-\2/')
3238
echo "version=${VERSION}" >> $GITHUB_OUTPUT
3339
echo "version_tag=${VERSION_TAG}" >> $GITHUB_OUTPUT
40+
echo "orch_tag=${ORCH_TAG}" >> $GITHUB_OUTPUT
41+
echo "npm_version=${NPM_VERSION}" >> $GITHUB_OUTPUT
3442
echo "dry_run=${{ env.DRY_RUN }}" >> $GITHUB_OUTPUT
3543
echo "Version: ${VERSION}"
3644
echo "Version Tag: ${VERSION_TAG}"
45+
echo "Orch Tag: ${ORCH_TAG}"
46+
echo "NPM Version: ${NPM_VERSION}"
3747
3848
- name: Download all release assets
3949
env:
4050
GH_TOKEN: ${{ secrets.GOPHER_ORCH_TOKEN }}
4151
run: |
4252
# Download all assets from the private gopher-orch repo
43-
gh release download ${{ steps.version.outputs.version_tag }} \
53+
# Use orch_tag (X.Y.Z) to download from gopher-orch, stripping optional .A suffix
54+
gh release download ${{ steps.version.outputs.orch_tag }} \
4455
-R GopherSecurity/gopher-orch \
4556
-D downloads
4657
@@ -125,9 +136,9 @@ jobs:
125136
- name: Update package version
126137
run: |
127138
cd packages/${{ matrix.platform }}
128-
VERSION="${{ needs.download-binaries.outputs.version }}"
129-
echo "Setting package version to: ${VERSION}"
130-
npm version "$VERSION" --no-git-tag-version --allow-same-version
139+
NPM_VERSION="${{ needs.download-binaries.outputs.npm_version }}"
140+
echo "Setting package version to: ${NPM_VERSION}"
141+
npm version "$NPM_VERSION" --no-git-tag-version --allow-same-version
131142
132143
- name: Publish to npm
133144
if: ${{ env.DRY_RUN != 'true' }}
@@ -167,32 +178,30 @@ jobs:
167178
- name: Build
168179
run: npm run build
169180

170-
- name: Verify package version
181+
- name: Set npm-compatible version
171182
run: |
172-
VERSION="${{ needs.download-binaries.outputs.version }}"
183+
NPM_VERSION="${{ needs.download-binaries.outputs.npm_version }}"
173184
PKG_VERSION=$(node -p "require('./package.json').version")
174185
175-
echo "Expected version: ${VERSION}"
186+
echo "NPM version: ${NPM_VERSION}"
176187
echo "Package version: ${PKG_VERSION}"
177188
178-
if [ "${VERSION}" != "${PKG_VERSION}" ]; then
179-
echo "⚠ Version mismatch! Updating package.json..."
180-
npm version "$VERSION" --no-git-tag-version --allow-same-version
181-
182-
# Update optionalDependencies to use the same version
183-
node -e "
184-
const fs = require('fs');
185-
const pkg = JSON.parse(fs.readFileSync('package.json', 'utf8'));
186-
if (pkg.optionalDependencies) {
187-
for (const dep of Object.keys(pkg.optionalDependencies)) {
188-
if (dep.startsWith('@gopher.security/gopher-orch-')) {
189-
pkg.optionalDependencies[dep] = '${VERSION}';
190-
}
189+
# Always set npm-compatible version (converts X.Y.Z.A to X.Y.Z-A)
190+
npm version "$NPM_VERSION" --no-git-tag-version --allow-same-version
191+
192+
# Update optionalDependencies to use the npm-compatible version
193+
node -e "
194+
const fs = require('fs');
195+
const pkg = JSON.parse(fs.readFileSync('package.json', 'utf8'));
196+
if (pkg.optionalDependencies) {
197+
for (const dep of Object.keys(pkg.optionalDependencies)) {
198+
if (dep.startsWith('@gopher.security/gopher-orch-')) {
199+
pkg.optionalDependencies[dep] = '${NPM_VERSION}';
191200
}
192-
fs.writeFileSync('package.json', JSON.stringify(pkg, null, 2) + '\n');
193201
}
202+
fs.writeFileSync('package.json', JSON.stringify(pkg, null, 2) + '\n');
203+
}
194204
"
195-
fi
196205
197206
echo "Final package.json:"
198207
cat package.json | grep -A 10 optionalDependencies

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99
## [Unreleased]
1010

1111

12+
## [0.1.12.2] - 2026-04-21
13+
14+
### Fixed
15+
16+
- Fix CI publish workflow: strip optional `.A` suffix from version when downloading gopher-orch release assets (X.Y.Z.A → X.Y.Z)
17+
1218
## [0.1.12.1] - 2026-04-21
1319

1420
### Fixed
@@ -153,7 +159,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
153159
---
154160

155161
[Unreleased]: https://github.com/GopherSecurity/gopher-mcp-js/compare/v0.1.0-20260227-124047...HEAD
156-
[0.1.12.1]: https://github.com/GopherSecurity/gopher-mcp-js/compare/v0.1.0-20260227-124047...v0.1.12.1[0.1.12]: https://github.com/GopherSecurity/gopher-mcp-js/compare/v0.1.2...v0.1.12
162+
[0.1.12.2]: https://github.com/GopherSecurity/gopher-mcp-js/compare/v0.1.12.1...v0.1.12.2
163+
[0.1.12.1]: https://github.com/GopherSecurity/gopher-mcp-js/compare/v0.1.12...v0.1.12.1
164+
[0.1.12]: https://github.com/GopherSecurity/gopher-mcp-js/compare/v0.1.2...v0.1.12
157165
[0.1.2]: https://github.com/GopherSecurity/gopher-mcp-js/compare/v0.1.1...v0.1.2
158166
[0.1.1]: https://github.com/GopherSecurity/gopher-mcp-js/compare/v0.1.0-20260227-124047...v0.1.1
159167
[0.1.0-20260227-124047]: https://github.com/GopherSecurity/gopher-mcp-js/compare/v0.1.0-20260226-072516...v0.1.0-20260227-124047

package-lock.json

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

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@gopher.security/gopher-mcp-js",
3-
"version": "0.1.12.1",
3+
"version": "0.1.12.2",
44
"description": "TypeScript SDK for Gopher Orch - AI Agent orchestration framework with native performance",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
@@ -40,12 +40,12 @@
4040
"koffi": "^2.9.0"
4141
},
4242
"optionalDependencies": {
43-
"@gopher.security/gopher-orch-darwin-arm64": "0.1.12.1",
44-
"@gopher.security/gopher-orch-darwin-x64": "0.1.12.1",
45-
"@gopher.security/gopher-orch-linux-arm64": "0.1.12.1",
46-
"@gopher.security/gopher-orch-linux-x64": "0.1.12.1",
47-
"@gopher.security/gopher-orch-win32-arm64": "0.1.12.1",
48-
"@gopher.security/gopher-orch-win32-x64": "0.1.12.1"
43+
"@gopher.security/gopher-orch-darwin-arm64": "0.1.12.2",
44+
"@gopher.security/gopher-orch-darwin-x64": "0.1.12.2",
45+
"@gopher.security/gopher-orch-linux-arm64": "0.1.12.2",
46+
"@gopher.security/gopher-orch-linux-x64": "0.1.12.2",
47+
"@gopher.security/gopher-orch-win32-arm64": "0.1.12.2",
48+
"@gopher.security/gopher-orch-win32-x64": "0.1.12.2"
4949
},
5050
"devDependencies": {
5151
"@types/jest": "^29.5.11",

packages/darwin-arm64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@gopher.security/gopher-orch-darwin-arm64",
3-
"version": "0.1.12.1",
3+
"version": "0.1.12.2",
44
"description": "macOS ARM64 (Apple Silicon) native binaries for gopher-orch",
55
"license": "MIT",
66
"repository": {

packages/darwin-x64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@gopher.security/gopher-orch-darwin-x64",
3-
"version": "0.1.12.1",
3+
"version": "0.1.12.2",
44
"description": "macOS x64 (Intel) native binaries for gopher-orch",
55
"license": "MIT",
66
"repository": {

packages/linux-arm64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@gopher.security/gopher-orch-linux-arm64",
3-
"version": "0.1.12.1",
3+
"version": "0.1.12.2",
44
"description": "Linux ARM64 native binaries for gopher-orch",
55
"license": "MIT",
66
"repository": {

packages/linux-x64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@gopher.security/gopher-orch-linux-x64",
3-
"version": "0.1.12.1",
3+
"version": "0.1.12.2",
44
"description": "Linux x64 native binaries for gopher-orch",
55
"license": "MIT",
66
"repository": {

packages/win32-arm64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@gopher.security/gopher-orch-win32-arm64",
3-
"version": "0.1.12.1",
3+
"version": "0.1.12.2",
44
"description": "Windows ARM64 native binaries for gopher-orch",
55
"license": "MIT",
66
"repository": {

packages/win32-x64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@gopher.security/gopher-orch-win32-x64",
3-
"version": "0.1.12.1",
3+
"version": "0.1.12.2",
44
"description": "Windows x64 native binaries for gopher-orch",
55
"license": "MIT",
66
"repository": {

0 commit comments

Comments
 (0)