@storm-software/workspace-tools 1.66.5 → 1.66.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## 1.66.6 (2024-03-28)
2
+
3
+
4
+ ### 🩹 Fixes
5
+
6
+ - **workspace-tools:** Updated `cargo-publish` to skip publishing when neccesary ([01ec5e99](https://github.com/storm-software/storm-ops/commit/01ec5e99))
7
+
8
+
9
+ ### ❤️ Thank You
10
+
11
+ - Patrick Sullivan
12
+
1
13
  ## 1.66.5 (2024-03-28)
2
14
 
3
15
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/workspace-tools",
3
- "version": "1.66.5",
3
+ "version": "1.66.6",
4
4
  "private": false,
5
5
  "description": "⚡ A Nx plugin package that contains various executors and generators used in a Storm workspaces.",
6
6
  "keywords": [
@@ -69,6 +69,21 @@ export default async function runExecutor(
69
69
  success: true
70
70
  };
71
71
  } catch (error: any) {
72
+ if (
73
+ error?.cause?.message &&
74
+ typeof error.cause.message === "string" &&
75
+ error.cause.message.includes("crate version") &&
76
+ error.cause.message.includes("is already uploaded")
77
+ ) {
78
+ console.log(
79
+ `Skipped package "${cargoToml.package.name}" from project "${cargoToml.package.name}" because v${cargoToml.package.version} already exists in https://crates.io with tag "latest"`
80
+ );
81
+
82
+ return {
83
+ success: true
84
+ };
85
+ }
86
+
72
87
  console.error("Failed to publish to https://crates.io");
73
88
  console.error(error);
74
89