Skip to content

Commit cbcd486

Browse files
committed
update the freshCraTemplateUpdate.sh script
1 parent bd7c7a4 commit cbcd486

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

freshCraTemplateUpdate.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,17 @@ NEW_CRA_VERSION=$(json -f ${TRAVIS_BUILD_DIR}/packages/react-scripts/package.jso
1818
echo "NEW_CRA_VERSION: $NEW_CRA_VERSION"
1919
json -I -f package.json -e "this.dependencies[\"@fs/react-scripts\"]=\"$NEW_CRA_VERSION\""
2020

21+
rm package-lock.json
2122
rm blueprint.yml.bak
2223
rm .npmrc
2324

2425
# Commit and push to the existing fs-webdev/fresh-cra-template repo on github
2526
git commit -a -m 'editing blueprint.yml, fixing @fs/react-scripts version'
2627
git remote add origin https://github.com/fs-webdev/fresh-cra-template.git
27-
git push --force origin master
28+
29+
if [ "$1" == next ]; then
30+
echo Is next branch, pushing to fresh-cra-template next branch
31+
git push --force origin master:next
32+
else
33+
git push --force origin master
34+
fi

0 commit comments

Comments
 (0)