@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 CHANGED
@@ -1,4 +1,4 @@
1
- # Dev-Experience-Fe-Scripts
1
+ # @hubspot/npm-scripts
2
2
 
3
3
  **A collection of scripts for internal HubSpot npm package development and management.**
4
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubspot/npm-scripts",
3
- "version": "0.0.1-beta.0",
3
+ "version": "0.0.2-experimental.0",
4
4
  "description": "Scripts for working with npm packages in the HubSpot ecosystem",
5
5
  "author": "",
6
6
  "license": "Apache-2.0",
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
- await gitCleanup(newVersion);
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);