DEV Community

Discussion on: Continuously Deploying an NPM Package with GitLab CI/CD

Collapse
 
webbureaucrat profile image
webbureaucrat

Yes and no.

I see the benefit of that and did some research into it, but I haven't done it for any of my projects because to me, there's some value in the fact that it makes me manually set the build number because it keeps me from auto-incrementing a patch number on something that should be called a minor version upgrade or a major version upgrade. After a couple weeks, I've gotten in the habit of upgrading the build number.

Take a look at this GitLab CI script, though. It shows how to autoincrement and save an env variable.

Collapse
 
alarid profile image
Yohann Legrand

That's a good point. Thanks :)