Skip to content

Commit b7e7710

Browse files
authored
Merge pull request #4 from JupiterOne/fix-npm-auth
[No Ticket] - Fix npm auth
2 parents 1e6f3ac + 983bf48 commit b7e7710

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ const main = async () => {
1515
console.log('skipping due to [skip ci] message')
1616
return;
1717
}
18+
execSync(`echo "//registry.npmjs.org/:_authToken=${npm_auth_token}" > .npmrc`,
19+
{stdio: 'inherit'})
1820
execSync('yarn global add auto',
1921
{stdio: 'inherit'})
2022
execSync('yarn install --frozen-lockfile',
@@ -31,8 +33,6 @@ const main = async () => {
3133
{stdio: 'inherit'})
3234
execSync('git fetch --tags',
3335
{stdio: 'inherit'})
34-
execSync(`echo "//registry.npmjs.org/:_authToken=${npm_auth_token}" > .npmrc`,
35-
{stdio: 'inherit'})
3636
execSync(`NPM_TOKEN=${npm_auth_token} GH_TOKEN=${gh_token} auto shipit --email [email protected] --name j1-internal-automation`,
3737
{stdio: 'inherit'})
3838
}

0 commit comments

Comments
 (0)