GitLab's annual major release is around the corner. Along with a lot of new and exciting features, there will be a few breaking changes. Learn more here.

Commit 5dfb67df authored by Kyle Johnson's avatar Kyle Johnson
Browse files

Use npm ci during setup

parent 3ef19692
Pipeline #194745201 failed with stage
in 1 minute and 36 seconds
......@@ -116,7 +116,10 @@ def setup(ctx):
print("Creating node environment.")
ctx.run('nodeenv --python-virtualenv', pty=True)
print("Installing node package.")
ctx.run('npm install', pty=True)
if os.path.exists(os.path.join(current_dir, "package-lock.json")):
ctx.run('npm ci', pty=True)
else:
ctx.run('npm install', pty=True)
print("Building initial assets.")
runwebpack(ctx, debug=True, watch=False)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment