Skip to content

Commit f7cd691

Browse files
jsjoeiocode-asher
andauthored
Update ci/steps/publish-npm.sh
Co-authored-by: Asher <[email protected]>
1 parent 512d293 commit f7cd691

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ci/steps/publish-npm.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ main() {
7474
# We only need to run npm version for "development" and "staging".
7575
# This is because our release:prep script automatically bumps the version
7676
# in the package.json and we commit it as part of the release PR.
77-
if [[ ! ENVIRONMENT == "production" ]]; then
77+
if [[ ENVIRONMENT == "production" ]]; then
78+
NPM_VERSION="$VERSION"
79+
else
7880
echo "Not a production environment"
7981
echo "Found environment: $ENVIRONMENT"
8082
echo "Manually bumping npm version..."

0 commit comments

Comments
 (0)