Skip to content

Commit

Permalink
Added git staging to release script
Browse files Browse the repository at this point in the history
  • Loading branch information
pozil committed Sep 30, 2020
1 parent 70d286b commit 2ee7211
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions bin/set-project-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,17 @@ else
exit -1
fi

cd ..
# Update node package
sed -E -i '' -e "s|\"version\": \"[0-9]+\.[0-9]+\.[0-9]+\",|\"version\": \"$version\",|" ../package.json && \
sed -E -i '' -e "s|\"version\": \"[0-9]+\.[0-9]+\.[0-9]+\",|\"version\": \"$version\",|" package.json && \
# Update UI
sed -E -i '' -e "s|HOST_APP_VERSION = '[0-9]+\.[0-9]+\.[0-9]+';|HOST_APP_VERSION = '$version';|" ../src/main/default/lwc/gameApp/gameApp.js && \
sed -E -i '' -e "s|HOST_APP_VERSION = '[0-9]+\.[0-9]+\.[0-9]+';|HOST_APP_VERSION = '$version';|" src/main/default/lwc/gameApp/gameApp.js && \
# Update DX Project config
sed -E -i '' -e "s|\"versionName\": \"ver [0-9]+\.[0-9]+\.[0-9]+\"|\"versionName\": \"ver $version\"|" ../sfdx-project.json && \
sed -E -i '' -e "s|\"versionNumber\": \"[0-9]+\.[0-9]+\.[0-9]+\.NEXT\"|\"versionNumber\": \"$version.NEXT\"|" ../sfdx-project.json && \
sed -E -i '' -e "s|\"versionName\": \"ver [0-9]+\.[0-9]+\.[0-9]+\"|\"versionName\": \"ver $version\"|" sfdx-project.json && \
sed -E -i '' -e "s|\"versionNumber\": \"[0-9]+\.[0-9]+\.[0-9]+\.NEXT\"|\"versionNumber\": \"$version.NEXT\"|" sfdx-project.json && \
npm install
# Stage changed files
git add package.json package-lock.json sfdx-project.json src/main/default/lwc/gameApp/gameApp.js

EXIT_CODE="$?"

Expand Down

0 comments on commit 2ee7211

Please sign in to comment.