-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(deploy): downgrade changesets/cli to 2.25.0 with previous patch f…
…or proper tag generation
- Loading branch information
Showing
4 changed files
with
974 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,7 +48,7 @@ | |
"devDependencies": { | ||
"@babel/plugin-transform-modules-commonjs": "7.24.8", | ||
"@changesets/changelog-github": "0.4.7", | ||
"@changesets/cli": "2.27.8", | ||
"@changesets/cli": "2.25.0", | ||
"@stylistic/eslint-plugin": "^2.8.0", | ||
"@types/node": "^22.7.4", | ||
"@typescript-eslint/eslint-plugin": "^8.7.0", | ||
|
@@ -73,7 +73,7 @@ | |
"packageManager": "[email protected]", | ||
"pnpm": { | ||
"patchedDependencies": { | ||
"@changesets/cli@2.27.8": "patches/@changesets__cli@2.27.8.patch" | ||
"@changesets/cli@2.25.0": "patches/@changesets__cli@2.25.0.patch" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
diff --git a/dist/cli.cjs.dev.js b/dist/cli.cjs.dev.js | ||
index e903107505f8f55defc76fafa07009c907499e31..b428b718e26aeacebe23d6f9ebdf6b3ac3907ee5 100644 | ||
--- a/dist/cli.cjs.dev.js | ||
+++ b/dist/cli.cjs.dev.js | ||
@@ -1268,8 +1268,8 @@ async function run$1(cwd) { | ||
} = await getPackages.getPackages(cwd); | ||
const allExistingTags = await git.getAllTags(cwd); | ||
|
||
- for (const pkg of packages) { | ||
- const tag = tool !== "root" ? `${pkg.packageJson.name}@${pkg.packageJson.version}` : `v${pkg.packageJson.version}`; | ||
+ for (const pkg of packages.filter(pkg => ["electron-builder", "electron-updater"].includes(pkg.packageJson.name))) { | ||
+ const tag = (tool !== "root" && pkg.packageJson.name !== 'electron-builder') ? `${pkg.packageJson.name}@${pkg.packageJson.version}` : `v${pkg.packageJson.version}`; | ||
|
||
if (allExistingTags.has(tag)) { | ||
logger.log("Skipping tag (already exists): ", tag); | ||
diff --git a/dist/cli.cjs.prod.js b/dist/cli.cjs.prod.js | ||
index fe411b261d240a2683308a54be71fd982f4f211b..d2896a5f5277370abf3530bf7e7dd74e18287b50 100644 | ||
--- a/dist/cli.cjs.prod.js | ||
+++ b/dist/cli.cjs.prod.js | ||
@@ -687,8 +687,8 @@ async function pre(cwd, options) { | ||
|
||
async function run$1(cwd) { | ||
const {packages: packages, tool: tool} = await getPackages.getPackages(cwd), allExistingTags = await git.getAllTags(cwd); | ||
- for (const pkg of packages) { | ||
- const tag = "root" !== tool ? `${pkg.packageJson.name}@${pkg.packageJson.version}` : "v" + pkg.packageJson.version; | ||
+ for (const pkg of packages.filter(pkg => ["electron-builder", "electron-updater"].includes(pkg.packageJson.name))) { | ||
+ const tag = ("root" !== tool && pkg.packageJson.name !== 'electron-builder') ? `${pkg.packageJson.name}@${pkg.packageJson.version}` : "v" + pkg.packageJson.version; | ||
allExistingTags.has(tag) ? logger.log("Skipping tag (already exists): ", tag) : (logger.log("New tag: ", tag), | ||
await git.tag(tag, cwd)); | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.