Skip to content

Instantly share code, notes, and snippets.

@douglampe
Created August 1, 2017 18:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save douglampe/738fd9634cb30938b9e98a2f13491e4a to your computer and use it in GitHub Desktop.
Save douglampe/738fd9634cb30938b9e98a2f13491e4a to your computer and use it in GitHub Desktop.
Use sed to add beta prerelease to version in package.json
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