Skip to content

Commit 88972ec

Browse files
authored
added the ability to auto bump the version number in readme file (#649)
1 parent 6704efb commit 88972ec

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

buildtools/publish.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ echo "Running npm install..."
118118
npm install
119119
echo "Ran npm install."
120120

121+
CURRENT_VERSION=$(jq -r ".version" package.json)
121122
echo "Making a $VERSION version..."
122123
npm version $VERSION
123124
NEW_VERSION=$(jq -r ".version" package.json)
@@ -135,6 +136,10 @@ echo "Publishing to npm..."
135136
npm publish
136137
echo "Published to npm."
137138

139+
echo "Bumping version numbers in README..."
140+
sed -i "s/firebasejs\/ui\/${CURRENT_VERSION}/firebasejs\/ui\/${NEW_VERSION}/g" README.md
141+
echo "Bumped version numbers in README."
142+
138143
echo "Cleaning up release notes..."
139144
rm CHANGELOG.md
140145
touch CHANGELOG.md

0 commit comments

Comments
 (0)