Skip to content

Commit

Permalink
Update script for this branch.
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanburns committed May 2, 2023
1 parent 2eb1c42 commit 1b19e0c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions build-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ set -e
# validate branches
. ./pre-check.sh

npm run clean
npm install

# pre-requisites
npm run lint
npm test
Expand Down
4 changes: 2 additions & 2 deletions pre-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

branch=$(git rev-parse --abbrev-ref HEAD)

if [[ "${branch}" != "master" ]]; then
echo "This script can only be run on the master branch. Current branch is ${branch}"
if [[ "${branch}" != "release-1.x" ]]; then
echo "This script can only be run on the release-1.x branch. Current branch is ${branch}"
exit 1
fi

Expand Down

0 comments on commit 1b19e0c

Please sign in to comment.