Skip to content

Commit

Permalink
auto commit
Browse files Browse the repository at this point in the history
  • Loading branch information
roftLin committed Aug 21, 2020
1 parent d1601e8 commit a341751
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
22 changes: 10 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,19 @@ after_success:
- git remote set-url origin https://${GITHUB_TOKEN}@${GH_REF}
- git remote -v

# # # 2、重置标记位,防止下次提交进入发布流程
# 2、重置标记位,防止下次提交进入发布流程
- npm run deploy
# - git commit -a --amend --no-edit
# - git push -f origin master:master

# - export IS_NPMSUCCESS=$(npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}" && npm publish --access public)
# - echo $IS_NPMSUCCESS

# 3、发布到npm
- export IS_NPMSUCCESS=$(npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}" && npm publish --access public)
- echo $IS_NPMSUCCESS
# # - export IS_GITPKGSUCCESS=$(npm config set '//npm.pkg.github.com/:_authToken' "${GITHUB_TOKEN}" && npm publish --access public)
# # - echo $IS_GITPKGSUCCESS

# # 完成发布后自动打tag
# - git commit -am 'chore:build'
# - npm version patch
# - git push upstream --tags
# - git push upstream master
# 4、完成发布后自动打tag
- npm version patch
- git push origin --tags
- git push origin master

# deploy:
# provider: npm
Expand All @@ -57,4 +55,4 @@ notifications:
recipients:
- 315779478@qq.com
on_success: never # default: change
on_failure: always # default: always 1 2 3
on_failure: always # default: always
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
"cover": "istanbul cover ./node_modules/mocha/bin/mocha -- test/ --no-timeouts",
"coveralls": "istanbul cover ./node_modules/mocha/bin/mocha --report lcovonly -- test/ && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"
},
"isDeploying": false
"isDeploying": true
}

0 comments on commit a341751

Please sign in to comment.