I am trying to do the following within one script(or excecute via one command)
- Run rollup
- Add the files that have changed/created/discarded
- Increment the package version number (patch)
- Git Commit and add the package version number
- Push git
Essentially i want to automate the push process.
Here is the script i created but the git message is "MSG" instead of the version
"npm run rollup && git add . && npm version patch -git-tag-version false && SET MSG=npm version utilities --version git commit -q -m MSG && git push"
The following command works except the MSG variable does not contain the actual version which is calculated by SET MSG=npm version utilities --version
I attempted it with an ampersand between setting the MSG
variable and git commit
Many thanks
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…