Skip to content
This repository was archived by the owner on Jan 31, 2022. It is now read-only.

Commit 4df0b1e

Browse files
committed
chore(tools): setup-release.sh including npm conditional install
1 parent 52413f8 commit 4df0b1e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tools/setup-gpg.sh renamed to tools/setup-release.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,16 @@ EOF
1414
cat $GRADLE_PROPERTIES
1515
}
1616

17-
if ! dpkg -l gnupg | grep -q gnupg; then
17+
# Install gnupg2 if missing
18+
if ! gpg --version > /dev/null; then
1819
echo "No gnupg* found. Installing gnupg2..."
1920
apt install gnupg2
2021
fi
2122

23+
# Install conventional-changelog-cli if missing
24+
npm list -g conventional-changelog-cli || npm install -g conventional-changelog-cli
25+
26+
# Setup gradle properties for gpg signing artifacts
2227
if [ ! -d $GRADLE_FOLDER ]
2328
then
2429
mkdir $GRADLE_FOLDER

0 commit comments

Comments
 (0)