Skip to content
Snippets Groups Projects
Commit 582ced9a authored by Grzegorz Rola's avatar Grzegorz Rola
Browse files

feature(npm): added octolize npm libraries support

parent 59a768c8
No related branches found
No related tags found
No related merge requests found
variables:
WPDESK_CI_VERSION: "2023.11.17"
WPDESK_CI_VERSION: "2023.11.21"
MYSQL_ROOT_PASSWORD: "mysql"
MYSQL_DATABASE: "wptest"
MYSQL_USER: "mysql"
......
......@@ -43,9 +43,13 @@ prepare npm assets:
when: never
stage: prepare-vendor
interruptible: true
script:
before_script:
- mkdir -p /cache/npm-cache
- npm config set cache /cache/npm-cache --global
- npm config set -- //${CI_SERVER_HOST}/:_authToken=${PREDATORS_DEPLOY_TOKEN}
- npm config set @octolize:registry=https://${CI_SERVER_HOST}/api/v4/packages/npm/
- npm config list
script:
- if [[ -f package.json ]]; then npm install --no-audit --progress=false; fi
- if [[ -f package.json ]]; then npm run prod; fi
- if [[ -f tests/codeception/prepare_npm.sh ]]; then sh tests/codeception/prepare_npm.sh; fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment