File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed
Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -54,10 +54,29 @@ if [[ $? -ne 0 ]]; then
5454 echo " !!! Error publishing to npm! You must do this manually by running 'npm publish'. !!!"
5555 exit 1
5656else
57- echo " *** v${VERSION} published to npm ***"
57+ echo " *** v${VERSION} published to npm as firebase-tools ***"
5858 echo
5959fi
6060
61+ sed -i.bak s/\" firebase-tools\" /\" firebase-cli\" /g package.json
62+ if [[ $? -ne 0 ]]; then
63+ echo " Error: Failed to replace firebase-tools with firebase-cli in the package.json."
64+ exit 1
65+ fi
66+ rm package.json.bak
67+
68+ # Publish the alternative version to npm
69+ npm publish
70+ if [[ $? -ne 0 ]]; then
71+ echo " !!! Error publishing to npm! You must do this manually by running 'npm publish'. !!!"
72+ exit 1
73+ else
74+ echo " *** v${VERSION} published to npm as firebase-cli ***"
75+ echo
76+ fi
77+
78+ git checkout -- package.json
79+
6180echo " Manual steps remaining:"
6281echo " 1) Update the release notes for firebase-tools version ${VERSION} on GitHub"
6382echo " 2) Update all firebase-tools version numbers specified in firebase-website to ${VERSION} "
You can’t perform that action at this time.
0 commit comments