@@ -282,8 +282,6 @@ describe('publish-npm', () => {
282282 code : 0 ,
283283 } ) ) ;
284284
285- process . env . NPM_CONFIG_OTP = 'otp' ;
286-
287285 await publishNpm ( 'release' ) ;
288286
289287 expect ( setVersionMock ) . not . toBeCalled ( ) ;
@@ -303,7 +301,7 @@ describe('publish-npm', () => {
303301 expect ( publishPackageMock . mock . calls ) . toEqual ( [
304302 [
305303 path . join ( REPO_ROOT , 'packages' , 'react-native' ) ,
306- { otp : process . env . NPM_CONFIG_OTP , tags : [ '0.81-stable' ] } ,
304+ { tags : [ '0.81-stable' ] } ,
307305 ] ,
308306 ] ) ;
309307
@@ -322,8 +320,6 @@ describe('publish-npm', () => {
322320 code : 0 ,
323321 } ) ) ;
324322
325- process . env . NPM_CONFIG_OTP = 'otp' ;
326-
327323 await publishNpm ( 'release' ) ;
328324
329325 expect ( updateReactNativeArtifactsMock ) . not . toBeCalled ( ) ;
@@ -341,10 +337,7 @@ describe('publish-npm', () => {
341337 ) ;
342338
343339 expect ( publishPackageMock . mock . calls ) . toEqual ( [
344- [
345- path . join ( REPO_ROOT , 'packages' , 'react-native' ) ,
346- { otp : process . env . NPM_CONFIG_OTP , tags : [ 'latest' ] } ,
347- ] ,
340+ [ path . join ( REPO_ROOT , 'packages' , 'react-native' ) , { tags : [ 'latest' ] } ] ,
348341 ] ) ;
349342
350343 expect ( consoleLogMock . mock . calls ) . toEqual ( [
@@ -365,8 +358,6 @@ describe('publish-npm', () => {
365358 execMock . mockReturnValueOnce ( { code : 1 } ) ;
366359 isTaggedLatestMock . mockReturnValueOnce ( true ) ;
367360
368- process . env . NPM_CONFIG_OTP = 'otp' ;
369-
370361 await expect ( async ( ) => {
371362 await publishNpm ( 'release' ) ;
372363 } ) . rejects . toThrow (
@@ -388,10 +379,7 @@ describe('publish-npm', () => {
388379 ) ;
389380
390381 expect ( publishPackageMock . mock . calls ) . toEqual ( [
391- [
392- path . join ( REPO_ROOT , 'packages' , 'react-native' ) ,
393- { otp : process . env . NPM_CONFIG_OTP , tags : [ 'latest' ] } ,
394- ] ,
382+ [ path . join ( REPO_ROOT , 'packages' , 'react-native' ) , { tags : [ 'latest' ] } ] ,
395383 ] ) ;
396384 expect ( consoleLogMock ) . not . toHaveBeenCalled ( ) ;
397385 } ) ;
@@ -406,8 +394,6 @@ describe('publish-npm', () => {
406394 code : 0 ,
407395 } ) ) ;
408396
409- process . env . NPM_CONFIG_OTP = 'otp' ;
410-
411397 await publishNpm ( 'release' ) ;
412398
413399 expect ( setVersionMock ) . not . toBeCalled ( ) ;
@@ -425,10 +411,7 @@ describe('publish-npm', () => {
425411 ) ;
426412
427413 expect ( publishPackageMock . mock . calls ) . toEqual ( [
428- [
429- path . join ( REPO_ROOT , 'packages' , 'react-native' ) ,
430- { otp : process . env . NPM_CONFIG_OTP , tags : [ 'next' ] } ,
431- ] ,
414+ [ path . join ( REPO_ROOT , 'packages' , 'react-native' ) , { tags : [ 'next' ] } ] ,
432415 ] ) ;
433416 expect ( consoleLogMock . mock . calls ) . toEqual ( [
434417 [ `Published react-native@${ expectedVersion } to npm` ] ,
0 commit comments