Closed poupryc closed 4 years ago
I'd assume something like
- stage: greenkeeper
if: branch =~ /^greenkeeper.*$/ # only run if in a greenkeeper branch
before_install: npm i -g greenkeeper-lockfile
install: npm i # always run full install for greenkeeper
script:
- greenkeeper-lockfile-update
- greenkeeper-lockfile-upload
would work, however I've not had a chance to see it work or fail. Also nicely solves the npm ci problem.
Edit: you will also have to force npm i in all other steps, though.
Thanks for your comment ! I don't want to risk breaking my deployment workflow. I'd like someone else's opinion if possible ^^.
Hi,
I would like to implement the package-lock.json support with Greenkeeper, however, I would like to use the courses with the conditions to be able to optimize the build.
Currently, my
travis.yml
looks like this:I was wondering if it was possible to do something like, using stage & jobs and conditional build.
I hope some of you can enlighten me.
Thank you for your work with greenkeeper ❤️