@hubspot/npm-scripts 0.0.4-experimental.0 → 0.0.4-experimental.1

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 +1 -9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubspot/npm-scripts",
3
- "version": "0.0.4-experimental.0",
3
+ "version": "0.0.4-experimental.1",
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
@@ -91,15 +91,7 @@ function buildHandler({ build, postLatestRelease, packageName, localVersion, reg
91
91
  let otp = '';
92
92
  if (!isDryRun) {
93
93
  try {
94
- await exec('npm logout');
95
- const result = await exec(`npm whoami --registry ${registry}`, {
96
- env: process.env,
97
- });
98
- console.log(result);
99
- // console.log('stderr', stderr);
100
- // if (stderr.includes('npm adduser')) {
101
- // execSync('npm adduser', { stdio: 'inherit' });
102
- // }
94
+ await exec(`npm whoami --registry ${registry}`);
103
95
  }
104
96
  catch (err) {
105
97
  execSync(`npm adduser --registry ${registry}`, { stdio: 'inherit' });