Updating package.json version with incremented build number
I have a node.js project building, and want to auto-increment the version in package.json, based on AppVeyor build number.
Is there a best practice to follow when doing this?
appveyor.yml has:
version: 1.0.{build}
package.json has:
"version": "1.0.0",
And I'd like to somehow insert the AppVeyor version in package.json during the build.
I'm guessing maybe call 'npm version' with some templated parameter which contains the build version?
Thanks!
Kirk
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by Ilya Finkelshte... on 27 Jun, 2017 06:42 PM
Hi Kirk,
Yes, I remember other customers did something like this:
Ilya.
2 Posted by kirk.marple on 27 Jun, 2017 08:50 PM
Thanks, that's exactly what I needed.
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:18 AM.