Skip to content
Snippets Groups Projects
Commit b8a2cdee authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

feat: add extra opts to install project deps

parent 08371ed0
No related branches found
No related tags found
No related merge requests found
......@@ -25,6 +25,7 @@ The Angular template uses some global configuration used throughout all jobs.
| `NPM_CONFIG_REGISTRY` | NPM [registry](https://docs.npmjs.com/configuring-your-registry-settings-as-an-npm-enterprise-user) | _none_ (defaults to `https://registry.npmjs.org`) |
| `NPM_CONFIG_SCOPED_REGISTRIES` | Space separated list of NPM [scoped registries](https://docs.npmjs.com/cli/v8/using-npm/scope#associating-a-scope-with-a-registry) (formatted as `@somescope:https://some.npm.registry/some/repo @anotherscope:https://another.npm.registry/another/repo`) | _none_ |
| `NG_WORKSPACE_DIR` | Angular workspace directory | `.` |
| `NG_INSTALL_EXTRA_OPTS`| Extra options to install project dependencies (with [`npm ci`](https://docs.npmjs.com/cli/ci.html/)) | _none_ |
## Jobs
......
......@@ -26,6 +26,11 @@
"default": ".",
"advanced": true
},
{
"name": "NG_INSTALL_EXTRA_OPTS",
"description": "Extra options to install project dependencies (with [`npm ci`](https://docs.npmjs.com/cli/ci.html/))",
"advanced": true
},
{
"name": "NG_BUILD_ARGS",
"description": "Angular [ng build](https://angular.io/cli/build) arguments",
......
......@@ -441,7 +441,7 @@ stages:
done
fi
- configure_gitlab_instance_level_npm_registry_auth
- npm ci --cache .npm --prefer-offline
- npm ci --cache .npm --prefer-offline $NG_INSTALL_EXTRA_OPTS
###############################################################################################
# check stage: #
......@@ -530,7 +530,7 @@ ng-publish:
- install_ca_certs "${CUSTOM_CA_CERTS:-$DEFAULT_CA_CERTS}"
- configure_gitlab_instance_level_npm_registry_auth
- configure_npm_publish_registry_auth
- npm ci --cache .npm --prefer-offline
- npm ci --cache .npm --prefer-offline $NG_INSTALL_EXTRA_OPTS
script:
- npm_publish
rules:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment