Skip to content

Commit

Permalink
Merge pull request #4 from JupiterOne/fix-npm-auth
Browse files Browse the repository at this point in the history
[No Ticket] - Fix npm auth
  • Loading branch information
electricgull authored Aug 1, 2022
2 parents 1e6f3ac + 983bf48 commit b7e7710
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ const main = async () => {
console.log('skipping due to [skip ci] message')
return;
}
execSync(`echo "//registry.npmjs.org/:_authToken=${npm_auth_token}" > .npmrc`,
{stdio: 'inherit'})
execSync('yarn global add auto',
{stdio: 'inherit'})
execSync('yarn install --frozen-lockfile',
Expand All @@ -31,8 +33,6 @@ const main = async () => {
{stdio: 'inherit'})
execSync('git fetch --tags',
{stdio: 'inherit'})
execSync(`echo "//registry.npmjs.org/:_authToken=${npm_auth_token}" > .npmrc`,
{stdio: 'inherit'})
execSync(`NPM_TOKEN=${npm_auth_token} GH_TOKEN=${gh_token} auto shipit --email [email protected] --name j1-internal-automation`,
{stdio: 'inherit'})
}
Expand Down

0 comments on commit b7e7710

Please sign in to comment.