Skip to content

Commit

Permalink
fix(deploy): downgrade changesets/cli to 2.25.0 with previous patch f…
Browse files Browse the repository at this point in the history
…or proper tag generation
  • Loading branch information
mmaietta committed Oct 9, 2024
1 parent 1fee87a commit 1616e2c
Show file tree
Hide file tree
Showing 4 changed files with 974 additions and 168 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
}
}
}
30 changes: 30 additions & 0 deletions patches/@[email protected]
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));
}
30 changes: 0 additions & 30 deletions patches/@[email protected]

This file was deleted.

Loading

0 comments on commit 1616e2c

Please sign in to comment.