Skip to content

Commit 235444e

Browse files
authored
Merge pull request #59 from sidclawhq/fix/release-pipeline
fix(release): repair the two defects that have broken every release run
2 parents a765b9c + c049d2a commit 235444e

2 files changed

Lines changed: 17 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,20 @@ jobs:
7878
run: |
7979
# Prereleases (e.g. v0.1.11-rc1, sdk-v0.2.0-beta.3) publish to
8080
# the `next` dist-tag so they do not become the default install.
81-
if [[ "${GITHUB_REF_NAME}" == *"-"* ]]; then
81+
#
82+
# Strip the tag prefix before testing for a prerelease hyphen. The
83+
# prefixes themselves contain hyphens (sdk-v, mcp-tools-v, ...), so
84+
# testing the whole ref name classified EVERY package-scoped release
85+
# as a prerelease — it would publish to `next` and never become the
86+
# default install, silently shipping to nobody.
87+
TAG="${GITHUB_REF_NAME}"
88+
PREFIX="${{ matrix.package.tag_prefix }}"
89+
if [[ "$TAG" == v*.*.* ]]; then
90+
VERSION="${TAG#v}"
91+
else
92+
VERSION="${TAG#${PREFIX}}"
93+
fi
94+
if [[ "$VERSION" == *"-"* ]]; then
8295
echo "tag=next" >> $GITHUB_OUTPUT
8396
else
8497
echo "tag=latest" >> $GITHUB_OUTPUT

packages/sdk/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,11 +200,12 @@
200200
],
201201
"repository": {
202202
"type": "git",
203-
"url": "https://github.com/sidclawhq/sdk"
203+
"url": "https://github.com/sidclawhq/platform",
204+
"directory": "packages/sdk"
204205
},
205206
"homepage": "https://docs.sidclaw.com",
206207
"bugs": {
207-
"url": "https://github.com/sidclawhq/sdk/issues"
208+
"url": "https://github.com/sidclawhq/platform/issues"
208209
},
209210
"devDependencies": {
210211
"@sidclaw/shared": "*",

0 commit comments

Comments
 (0)