monorepo-next 9.3.3 → 9.3.5
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/package.json +2 -2
- package/src/release.js +6 -4
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "monorepo-next",
|
3
|
-
"version": "9.3.
|
3
|
+
"version": "9.3.5",
|
4
4
|
"description": "Detach monorepo packages from normal linking",
|
5
5
|
"bin": {
|
6
6
|
"next": "bin/next.js"
|
@@ -68,7 +68,7 @@
|
|
68
68
|
"minimatch": "^5.0.0",
|
69
69
|
"npm-packlist": "^6.0.0",
|
70
70
|
"rfc6902": "^5.0.0",
|
71
|
-
"semver": "7.5.
|
71
|
+
"semver": "^7.5.3",
|
72
72
|
"standard-version": "9.5.0",
|
73
73
|
"superset": "^2.0.1",
|
74
74
|
"tmp": "0.2.1",
|
package/src/release.js
CHANGED
@@ -211,11 +211,13 @@ async function release({
|
|
211
211
|
await originalPush();
|
212
212
|
}
|
213
213
|
} catch (err) {
|
214
|
-
if (
|
215
|
-
|
216
|
-
|
214
|
+
if (!dryRun) {
|
215
|
+
if (shouldCleanUpAfterFailedPush) {
|
216
|
+
await execa('git', ['tag', '-d', ...tags], { cwd: workspaceCwd });
|
217
|
+
}
|
217
218
|
|
218
|
-
|
219
|
+
await execa('git', ['reset', '--hard', previousCommit], { cwd: workspaceCwd });
|
220
|
+
}
|
219
221
|
|
220
222
|
throw err;
|
221
223
|
}
|