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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018ihk8iQuo3kv2aPjAYEPuR
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user