Skip to content

Commit 24f8242

Browse files
committed
chore: 🤖 workflow
1 parent ebb4a53 commit 24f8242

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

‎scripts/update-package-version.js‎

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,18 @@ function getGitTags(prefix) {
6666
try {
6767
const isWindows = process.platform === "win32";
6868

69+
// Fetch tags first (needed for CI environments)
70+
execSync("git fetch --tags", {
71+
stdio: "pipe",
72+
...(isWindows ? { shell: true } : {}),
73+
});
74+
6975
// Get all tags sorted by version (descending)
70-
const output = isWindows
71-
? execSync("git tag --sort=-version:refname", {
72-
encoding: "utf8",
73-
stdio: ["pipe", "pipe", "pipe"],
74-
shell: true,
75-
})
76-
: execSync("git tag --sort=-version:refname", {
77-
encoding: "utf8",
78-
stdio: ["pipe", "pipe", "pipe"],
79-
});
76+
const output = execSync("git tag --sort=-version:refname", {
77+
encoding: "utf8",
78+
stdio: ["pipe", "pipe", "pipe"],
79+
...(isWindows ? { shell: true } : {}),
80+
});
8081

8182
const tags = output
8283
.trim()

0 commit comments

Comments
 (0)