Easy way to auto increase NPM package version when publishing for pipeline

Ming
Mar 16, 2021

--

bu la bu la bu la… so the code is below

bash:

npm --no-git-tag-version version $(npx semver $(npm info your-package-name version) -i)

if you are using PowerShell, just remove $

--

--