Created
August 1, 2017 18:32
-
-
Save douglampe/738fd9634cb30938b9e98a2f13491e4a to your computer and use it in GitHub Desktop.
Use sed to add beta prerelease to version in package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sed -r -i "s|(\"version\"\s*:\s*\")([^\"]+)(\")|\1\2-beta.$CI_JOB_ID\3|" package.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment