Browse Source

Adding configuration script to side step yarn custom registry bug

framework
Drew Short 6 years ago
parent
commit
ae07cf5a50
  1. 1
      .gitlab-ci.yml
  2. 10
      administration_client/create_config_files.sh

1
.gitlab-ci.yml

@ -18,6 +18,7 @@ administration-client-tests:
stage: test
script:
- cd administration_client
- ./create_config_files.sh
- yarn install
- yarn run test:unit
tags:

10
administration_client/create_config_files.sh

@ -0,0 +1,10 @@
#!/usr/bin/env bash
if [ -z "$NPM_CONFIG_REGISTRY" ]
then
echo "No custom registry defined."
else
echo "Creating custom registry configurations."
echo "registry \"$NPM_CONFIG_REGISTRY\"" >> .npmrc
echo "registry \"$NPM_CONFIG_REGISTRY\"" >> .yarnrc
fi
Loading…
Cancel
Save