monorepo-next 9.3.4 → 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.
Files changed (2) hide show
  1. package/package.json +1 -1
  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.4",
3
+ "version": "9.3.5",
4
4
  "description": "Detach monorepo packages from normal linking",
5
5
  "bin": {
6
6
  "next": "bin/next.js"
package/src/release.js CHANGED
@@ -211,11 +211,13 @@ async function release({
211
211
  await originalPush();
212
212
  }
213
213
  } catch (err) {
214
- if (shouldCleanUpAfterFailedPush) {
215
- await execa('git', ['tag', '-d', ...tags], { cwd: workspaceCwd });
216
- }
214
+ if (!dryRun) {
215
+ if (shouldCleanUpAfterFailedPush) {
216
+ await execa('git', ['tag', '-d', ...tags], { cwd: workspaceCwd });
217
+ }
217
218
 
218
- await execa('git', ['reset', '--hard', previousCommit], { cwd: workspaceCwd });
219
+ await execa('git', ['reset', '--hard', previousCommit], { cwd: workspaceCwd });
220
+ }
219
221
 
220
222
  throw err;
221
223
  }