diff --git a/.codechina-ci.yml b/.codechina-ci.yml index 6a1faf3b74cc268bf1f53b21b5f2e55e162ae4ae..41d62e7d4ba4d8d4bb390be66c2bc70015101ea9 100644 --- a/.codechina-ci.yml +++ b/.codechina-ci.yml @@ -22,16 +22,16 @@ publish: stage: deploy script: # If no .npmrc if included in the repo, generate a temporary one - - echo $NPM_PUBLISH_TOKEN - - echo "https//registry.npmjs.org/:_authToken=${NPM_PUBLISH_TOKEN}" - - | - if [[ ! -f .npmrc ]]; then - echo 'No .npmrc found! Creating one now. Now we will generate one' - { - echo "https//registry.npmjs.org/:_authToken=${NPM_PUBLISH_TOKEN}" - } >> .npmrc - fi - - echo "Created the following .npmrc:"; cat .npmrc + # - echo $NPM_PUBLISH_TOKEN + # - echo "https//registry.npmjs.org/:_authToken=${NPM_PUBLISH_TOKEN}" + # - | + # if [[ ! -f .npmrc ]]; then + # echo 'No .npmrc found! Creating one now. Now we will generate one' + # { + # echo "https://registry.npmjs.org/:_authToken=${NPM_PUBLISH_TOKEN}" + # } >> .npmrc + # fi + - npm config set registry "https://registry.npmjs.org/:_authToken=${NPM_PUBLISH_TOKEN}" # Extract a few values from package.json - NPM_PACKAGE_NAME=$(node -p "require('./package.json').name")