Skip to content
Snippets Groups Projects
Commit 9d24793a authored by Eskudero Gurrutxaga, Ibon's avatar Eskudero Gurrutxaga, Ibon
Browse files

cache npm files

parent 464a1713
No related branches found
No related tags found
No related merge requests found
......@@ -10,8 +10,6 @@ artifactory:
script:
#set root user
- npm -g config set user root
# install jfrog cli
- npm install -g jfrog-cli-go
#create a publish package
- jfrog rt npm-publish --build-name=$CI_PROJECT_NAME --build-number=$CI_JOB_ID
# save environment variables into thepackage
......
cache:
paths:
- node_modules/
- dist/
- root/.jfrog/
- root/.npm/
- usr/local/lib/node_modules/
build:
stage: build
artifacts:
......@@ -12,6 +13,8 @@ build:
- docker
image: $ACR_URL/node:18.12.0
script:
# enable caching
- npm ci --cache .npm --prefer-offline
#set root user
- npm -g config set user root
# install jfrog cli
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment