提交 8df9a059 编写于 作者: CoCo_Code_Op2's avatar CoCo_Code_Op2 ⛹🏽

更新.codechina-ci.yml

上级 21bc807d
......@@ -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")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册