Skip to content

Commit

Permalink
Merge pull request #221 from matrix-org/dbkr/check_dependencies
Browse files Browse the repository at this point in the history
Check dependencies aren't on develop in release.sh
  • Loading branch information
richvdh authored Oct 5, 2016
2 parents 0021b21 + 7db6b9e commit 0f71983
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
# Script to perform a release of matrix-js-sdk. Performs the steps documented
# in RELEASING.md
#
# Requires github-changelog-generator; to install, do
# pip install git+https://github.com/matrix-org/github-changelog-generator.git
# Requires:
# github-changelog-generator; to install, do
# pip install git+https://github.com/matrix-org/github-changelog-generator.git
# jq; install from your distibution's package manager (https://stedolan.github.io/jq/)

set -e

Expand All @@ -20,6 +22,13 @@ $USAGE
EOF
}

ret=0
cat package.json | jq '.dependencies[]' | grep -q '#develop' || ret=$?
if [ "$ret" -eq 0 ]; then
echo "package.json contains develop dependencies. Refusing to release."
exit
fi

skip_changelog=
skip_jsdoc=
changelog_file="CHANGELOG.md"
Expand Down

0 comments on commit 0f71983

Please sign in to comment.