Skip to content

Commit 0ce1670

Browse files
committed
fix(release): Add ‘semantic pre’ command before build
1 parent 73b5777 commit 0ce1670

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

.travis.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,17 @@ before_install:
2424
install: true
2525

2626
script:
27+
- 'if [[ -n "$NPM_TOKEN" && -n "$GH_TOKEN" && "$TRAVIS_BRANCH" = "master-dist" ]]; then
28+
npm run semantic-release-pre;
29+
fi'
2730
- sh -x ./node_modules/patternfly-eng-release/scripts/_build.sh -a
2831

2932
after_success:
30-
- npm prune
31-
- npm run semantic-release
33+
- 'if [[ -n "$NPM_TOKEN" && -n "$GH_TOKEN" && "$TRAVIS_BRANCH" = "master-dist" ]]; then
34+
npm prune;
35+
npm run semantic-release-publish;
36+
npm run semantic-release-post;
37+
fi'
3238
- sh -x ./node_modules/patternfly-eng-release/scripts/semantic-release/_publish-webjar.sh -a
3339
- ./scripts/publish-ghpages.sh -t docs
3440

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"karma-phantomjs-launcher": "^1.0.0",
5454
"matchdep": "0.3.0",
5555
"nsp": "^2.6.1",
56-
"patternfly-eng-release": "^3.26.12",
56+
"patternfly-eng-release": "^3.26.15",
5757
"semantic-release": "^6.3.6"
5858
},
5959
"optionalDependencies": {
@@ -88,7 +88,10 @@
8888
"help": "grunt help",
8989
"serve": "grunt serve",
9090
"start": "grunt serve",
91-
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
91+
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
92+
"semantic-release-post": "semantic-release post",
93+
"semantic-release-pre": "semantic-release pre",
94+
"semantic-release-publish": "npm publish"
9295
},
9396
"repository": {
9497
"type": "git",

0 commit comments

Comments
 (0)