Skip to content

Commit

Permalink
Fix postversion script
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremybarbet committed Jun 6, 2019
1 parent 5a0f1da commit 51c1086
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions post-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
PACKAGE_VERSION=$(cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]')

# Change dependency version on the footer component
perl -pi -e "s/> — v(.*)/> — v$PACKAGE_VERSION/" ./examples/expo/src/footer/Footer.js
perl -pi -e "s/> — v(.*)/> — v$PACKAGE_VERSION/" ./examples/react-navigation/src/footer/Footer.js
perl -pi -e "s/> — v(.*)/> — v$PACKAGE_VERSION/" ./examples/react-native-navigation/src/footer/Footer.js
perl -pi -e "s/> — v(.*)/> — v$PACKAGE_VERSION/" ./examples/expo/src/components/footer/Footer.js
perl -pi -e "s/> — v(.*)/> — v$PACKAGE_VERSION/" ./examples/react-navigation/src/components/footer/Footer.js
perl -pi -e "s/> — v(.*)/> — v$PACKAGE_VERSION/" ./examples/react-native-navigation/src/components/footer/Footer.js

# Remove default tag from npm version
git tag -d v$PACKAGE_VERSION
Expand Down

0 comments on commit 51c1086

Please sign in to comment.