Skip to content

Commit

Permalink
chore: Fix workflows config errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jun 28, 2020
1 parent b3cecbf commit e9249be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
15 changes: 1 addition & 14 deletions .github/workflows/deploy.yml
Expand Up @@ -53,20 +53,7 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: npm publish
run: |
npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
# https://docs.npmjs.com/files/npmrc
# echo "_auth=\${NODE_AUTH_TOKEN}\nregistry = https://registry.npmjs.org/" > .npmrc
# echo "//registry.npmjs.org/:_authToken=\${NODE_AUTH_TOKEN}" > .npmrc
echo "https://registry.npmjs.org/:_password=${{ secrets.NPM_PASSWORD }}" > .npmrc
echo "https://registry.npmjs.org/:username=wcjiang" >> .npmrc
echo "https://registry.npmjs.org/:email=398188662@qq.com" >> .npmrc
echo "https://registry.npmjs.org/:always-auth=false" >> .npmrc
cat .npmrc
npm config ls -l
npm whoami
npm run u:publish
rm -rf .npmrc
run: npm run u:publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -33,7 +33,7 @@
"test": "tsbb test --env=jsdom",
"coverage": "tsbb test --coverage",
"u:version": "lerna version 4.2.1 --no-changelog --skip-git --yes && npm run b:doc",
"u:publish": "lerna publish from-package --yes",
"u:publish": "lerna publish from-package --yes --no-verify-access",
"clean": "lerna clean",
"compile-less": "compile-less",
"kkt": "kkt",
Expand Down

0 comments on commit e9249be

Please sign in to comment.