-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to make this work with npm ci
?
#156
Comments
It seems travis now defaults to Traivs CI run: https://travis-ci.org/freaktechnik/github-stub/builds/386634973 |
It looks like this will be happening now for all new Greenkeeper PRs with a breaking version change that run on the latest Node. It can be solved by reverting the default script in your install: npm install I ended up getting the same error message as @Stupidism setting up That's what seems to be happening for some other CI services already (e.g. for Codeship at https://github.com/greenkeeperio/greenkeeper-lockfile/blob/master/ci-services/codeship.js#L33). |
Hi @daffl , thanks for jumping in here, that is indeed the way to go for now 👍 We’ve got the problem on our list and will deal with it within the monorepo PR for gk-lockfile that we’re currently working on. |
This is a workaround provided by greenkeeperio/greenkeeper-lockfile#156
This is a workaround provided by greenkeeperio/greenkeeper-lockfile#156
I've created a script that will conditionally use npm install/npm ci on travis ci depending on whether the branch is a greenkeeper branch. A gist including travis config example. https://gist.github.com/BerkeleyTrue/ff98c0aa27c21e1616f6bf910f444aee |
|
This fixes the issue where greenkeeper ci build was failing due to `npm ci` Ref: greenkeeperio/greenkeeper-lockfile#156
Evidently, travis using `npm ci` doesn't like greenkeeper not sticking to the package-lock.json. ^ This was suggested from: greenkeeperio/greenkeeper-lockfile#156 (comment)
Otherwise we run into this issue: greenkeeperio/greenkeeper-lockfile#156
greenkeeper does not work with npm ci, see greenkeeperio/greenkeeper-lockfile#156
Use npm install for Greenkeeper branch See greenkeeperio/greenkeeper-lockfile#156 (comment)
Otherwise we run into this issue: greenkeeperio/greenkeeper-lockfile#156
For node 9 I had to add:
So the full'ish script:
|
Any update as to when we can expect a more official fix? Thanks! |
I tried in travis and circleci:
But it always complains:
ci scripts: travis
circleci
ci results: travis
circleci
The text was updated successfully, but these errors were encountered: