File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -205,6 +205,17 @@ export class ReleaseTool {
205205 */
206206 private async _verifyNpmLoginState ( ) : Promise < boolean > {
207207 const registry = `NPM at the ${ this . _config . publishRegistry ?? 'default NPM' } registry` ;
208+ // TODO(josephperrott): remove wombat specific block once wombot allows `npm whoami` check to
209+ // check the status of the local token in the .npmrc file.
210+ if ( this . _config . publishRegistry ?. includes ( 'wombat-dressing-room.appspot.com' ) ) {
211+ Log . info ( 'Unable to determine NPM login state for wombat proxy, requiring login now.' ) ;
212+ try {
213+ await NpmCommand . startInteractiveLogin ( this . _config . publishRegistry ) ;
214+ } catch {
215+ return false ;
216+ }
217+ return true ;
218+ }
208219 if ( await NpmCommand . checkIsLoggedIn ( this . _config . publishRegistry ) ) {
209220 Log . debug ( `Already logged into ${ registry } .` ) ;
210221 return true ;
You can’t perform that action at this time.
0 commit comments