Skip to content

Commit

Permalink
fix: use semantic-release-verify-patch package instead of internal
Browse files Browse the repository at this point in the history
  • Loading branch information
DaRaFF committed Aug 23, 2017
1 parent fe48d2a commit b4ac7a0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 25 deletions.
12 changes: 5 additions & 7 deletions bin/semantic-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
set -e

# Set new version
if [[ $TRAVIS_PULL_REQUEST =~ false ]]; then
if [[ $TRAVIS_BRANCH =~ ^maintenance- ]]; then
# only allow patch releases in a maintenance branch
semantic-release pre --verify-release="./js/semantic-release/verifyPatchRelease.js"
else
semantic-release pre
fi
if [[ $TRAVIS_BRANCH =~ ^maintenance- ]]; then
# only allow patch releases in a maintenance branch
semantic-release pre --verify-release="./node_modules/semantic-release-verify-patch"
else
semantic-release pre
fi

# Remove all devDeps so shrinkwrap does not pick them up.
Expand Down
18 changes: 0 additions & 18 deletions js/semantic-release/verifyPatchRelease.js

This file was deleted.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"devDependencies": {
"@semantic-release/condition-travis": "^5.0.1",
"semantic-release": "^7.0.2",
"semantic-release-verify-patch": "^1.1.0",
"semver": "^5.3.0",
"tap-spec": "^4.1.1",
"tape": "^4.8.0"
Expand Down

0 comments on commit b4ac7a0

Please sign in to comment.