Skip to content

Commit

Permalink
feat(release): add build step to semantic-release in Travis (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
rcebulko committed Mar 30, 2020
1 parent 09e1288 commit d4f7649
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ script: yarn run-example
after_success:
# run automated release process with semantic-release
- if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_EVENT_TYPE" == "push" && "$TRAVIS_NODE_VERSION" == "stable" ]]; then
npm run build;
semantic-release;
fi;

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "karma-sauce-launcher",
"version": "3.0.1",
"description": "A Karma plugin. Launch any browser on SauceLabs!",
"main": "./index.js",
"main": "./dist/index.js",
"scripts": {
"build": "tsc -p src/ && cp package.json dist/",
"run-example": "yarn build && yarn copy-dist-to-modules && yarn run-example-karma",
Expand Down

0 comments on commit d4f7649

Please sign in to comment.