From 7f1ac9e02ff9ef191c4be1daf0eccefa97e7a716 Mon Sep 17 00:00:00 2001 From: Yaowei Zheng Date: Mon, 20 Jul 2026 14:49:09 +0800 Subject: [PATCH] Tolerate tag version equal to the in-repo version when stamping npm version exits 1 with "Version not changed" when the tag version matches the package's current version, which failed the publish-npm job on v0.0.1. Pass --allow-same-version so stamping is a no-op in that case. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_018ihk8iQuo3kv2aPjAYEPuR --- .github/workflows/release.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 175f648..bf77337 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -190,10 +190,10 @@ jobs: V="${TAG#v}" grep -q 'export const VERSION = "' packages/core/src/index.ts sed -i "s/export const VERSION = \"[^\"]*\"/export const VERSION = \"$V\"/" packages/core/src/index.ts - (cd packages/skills && npm version --no-git-tag-version "$V") - (cd packages/core && npm version --no-git-tag-version "$V") - (cd packages/server && npm version --no-git-tag-version "$V") - (cd packages/cli && npm version --no-git-tag-version "$V") + (cd packages/skills && npm version --no-git-tag-version --allow-same-version "$V") + (cd packages/core && npm version --no-git-tag-version --allow-same-version "$V") + (cd packages/server && npm version --no-git-tag-version --allow-same-version "$V") + (cd packages/cli && npm version --no-git-tag-version --allow-same-version "$V") # Dependency order: cli bundles core's dist (tsup noExternal), server/web need core's types; # web is built here only to be copied into the server package below.