File tree Expand file tree Collapse file tree 1 file changed +1
-19
lines changed
Expand file tree Collapse file tree 1 file changed +1
-19
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import setToken from '@hutson/set-npm-auth-token-for-ci';
22import * as fs from 'fs' ;
33import isCI from 'is-ci' ;
44import parseAuthor from 'parse-author' ;
5- import * as path from 'path' ;
65import { promisify } from 'util' ;
76
87import getPackages from 'get-monorepo-packages' ;
@@ -22,24 +21,7 @@ function isMonorepo() {
2221
2322async function setTokenOnCI ( ) {
2423 if ( isCI ) {
25- process . env . DEBUG = 'set-npm-auth-token-for-ci' ;
26- const result = setToken ( ) ;
27- console . log ( 'Set NPM Token in npmrc' , result ) ;
28-
29- try {
30- console . log ( 'cat root' ) ;
31- await execPromise ( 'cat' , [ '~/.npmrc' ] ) ;
32- } catch ( error ) {
33- console . log ( error ) ;
34- }
35- try {
36- console . log ( 'cat project root' ) ;
37- console . log (
38- await execPromise ( 'cat' , [ path . join ( process . cwd ( ) , '.npmrc' ) ] )
39- ) ;
40- } catch ( error ) {
41- console . log ( error ) ;
42- }
24+ setToken ( ) ;
4325 }
4426}
4527
You can’t perform that action at this time.
0 commit comments