@hubspot/npm-scripts 0.0.1-beta.0 → 0.0.2-experimental.0
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/README.md +1 -1
- package/package.json +1 -1
- package/src/release.js +4 -1
package/README.md
CHANGED
package/package.json
CHANGED
package/src/release.js
CHANGED
|
@@ -101,6 +101,7 @@ function buildHandler({ build, postLatestRelease, packageName, localVersion, reg
|
|
|
101
101
|
await publish(tag, otp, isDryRun, registry);
|
|
102
102
|
}
|
|
103
103
|
catch (e) {
|
|
104
|
+
logger.error(e);
|
|
104
105
|
logger.error('An error occurred while releasing the CLI. Correct the error and re-run `yarn build`.');
|
|
105
106
|
await gitCleanup(newVersion);
|
|
106
107
|
process.exit(EXIT_CODES.ERROR);
|
|
@@ -117,7 +118,9 @@ function buildHandler({ build, postLatestRelease, packageName, localVersion, reg
|
|
|
117
118
|
}
|
|
118
119
|
}
|
|
119
120
|
if (isDryRun) {
|
|
120
|
-
|
|
121
|
+
if (!isExperimental) {
|
|
122
|
+
await gitCleanup(newVersion);
|
|
123
|
+
}
|
|
121
124
|
logger.log(`\nDry run: skipping push to Github`);
|
|
122
125
|
logger.log('Dry run release finished successfully');
|
|
123
126
|
process.exit(EXIT_CODES.SUCCESS);
|