Skip to content

Commit

Permalink
chore: automate publish of webpack tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Fatme committed Apr 19, 2019
1 parent f67e079 commit 31d9f4c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ branches:
- master
- release
- release-patch
- feature/webpack-only
env:
global:
- DATE=$(date +%Y-%m-%d)
Expand Down
3 changes: 3 additions & 0 deletions .travis/add-publishConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ switch (branch) {
case "master":
packageDef.publishConfig.tag = "next";
break;
case "feature/webpack-only":
packageDef.publishConfig.tag = "webpack";
break;
default:
throw new Error(`Unable to publish as the branch ${branch} does not have corresponding tag. Supported branches are master (next tag), release (rc tag) and release-patch (patch tag)`);
}
Expand Down

0 comments on commit 31d9f4c

Please sign in to comment.