Skip to content

Commit

Permalink
chore(ci): Fix release process
Browse files Browse the repository at this point in the history
  • Loading branch information
tverhoken committed Oct 30, 2020
1 parent d300e2d commit 7ba09e1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,9 @@ deploy:
email: "thomas.verhoken@gmail.com"
api_key: $NPM_TOKEN
on:
condition: "$CAN_PUBLISH = 'true'"
condition: "$CAN_PUBLISH = 'true'"
after_deploy:
- rm -r dist
- git rm -r dist
- git commit -m "Cleanup for next iteration [ci skip]"
- git push https://${GITHUB_TOKEN}@github.com/tverhoken/stryker-diff-runner.git --follow-tags $(git rev-parse --abbrev-ref HEAD):master
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"test": "jest --coverage",
"test:ci": "npm run test && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
"test:watch": "jest --watch",
"release": "git add dist && standard-version --commit-all --message=\"chore(release): %s [ci skip]\" && git push https://${GITHUB_TOKEN}@github.com/tverhoken/stryker-diff-runner.git --follow-tags $(git rev-parse --abbrev-ref HEAD):master",
"release": "git add dist && standard-version --commit-all --message=\"chore(release): %s [ci skip]\"",
"snyk-protect": "snyk protect"
},
"repository": {
Expand Down

0 comments on commit 7ba09e1

Please sign in to comment.