Skip to content

Commit

Permalink
fix: only master branch can send report
Browse files Browse the repository at this point in the history
  • Loading branch information
Barrior committed Oct 26, 2019
1 parent aa8c29c commit 5ec2d01
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion npm_publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ if [[ $? != 0 ]]
then exit 1
fi

yarn coverage:report
branch_name=$(git symbolic-ref HEAD --short)

# only master branch can send report
if [[ branch_name == "master" ]]
then yarn coverage:report
fi

yarn build

Expand Down

0 comments on commit 5ec2d01

Please sign in to comment.