Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
upgrade-data-crawler-fe
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ThinhNC
upgrade-data-crawler-fe
Commits
d6084364
Commit
d6084364
authored
Sep 10, 2026
by
ThinhNC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci: configure npm global directory in user home to fix EACCES
parent
5fecc38d
Pipeline
#53080
passed with stage
in 1 minute and 58 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
.gitlab-ci.yml
.gitlab-ci.yml
+8
-2
No files found.
.gitlab-ci.yml
View file @
d6084364
...
@@ -19,7 +19,10 @@ deploy_preview:
...
@@ -19,7 +19,10 @@ deploy_preview:
-
export NVM_DIR="$HOME/.nvm"
-
export NVM_DIR="$HOME/.nvm"
-
'
[
-s
"$NVM_DIR/nvm.sh"
]
&&
\.
"$NVM_DIR/nvm.sh"'
-
'
[
-s
"$NVM_DIR/nvm.sh"
]
&&
\.
"$NVM_DIR/nvm.sh"'
-
export PATH="$PATH:$HOME/.nvm/versions/node/$(ls $HOME/.nvm/versions/node 2>/dev/null | tail -n 1)/bin:/usr/local/bin:/usr/bin"
-
export PATH="$PATH:$HOME/.nvm/versions/node/$(ls $HOME/.nvm/versions/node 2>/dev/null | tail -n 1)/bin:/usr/local/bin:/usr/bin"
-
npm install --global pnpm vercel
-
mkdir -p "$HOME/.npm-global"
-
npm config set prefix "$HOME/.npm-global"
-
export PATH="$HOME/.npm-global/bin:$PATH"
-
npm install -g pnpm vercel
script
:
script
:
-
vercel pull --yes --environment=preview --token=$VERCEL_TOKEN
-
vercel pull --yes --environment=preview --token=$VERCEL_TOKEN
-
vercel build --token=$VERCEL_TOKEN
-
vercel build --token=$VERCEL_TOKEN
...
@@ -40,7 +43,10 @@ deploy_production:
...
@@ -40,7 +43,10 @@ deploy_production:
-
export NVM_DIR="$HOME/.nvm"
-
export NVM_DIR="$HOME/.nvm"
-
'
[
-s
"$NVM_DIR/nvm.sh"
]
&&
\.
"$NVM_DIR/nvm.sh"'
-
'
[
-s
"$NVM_DIR/nvm.sh"
]
&&
\.
"$NVM_DIR/nvm.sh"'
-
export PATH="$PATH:$HOME/.nvm/versions/node/$(ls $HOME/.nvm/versions/node 2>/dev/null | tail -n 1)/bin:/usr/local/bin:/usr/bin"
-
export PATH="$PATH:$HOME/.nvm/versions/node/$(ls $HOME/.nvm/versions/node 2>/dev/null | tail -n 1)/bin:/usr/local/bin:/usr/bin"
-
npm install --global pnpm vercel
-
mkdir -p "$HOME/.npm-global"
-
npm config set prefix "$HOME/.npm-global"
-
export PATH="$HOME/.npm-global/bin:$PATH"
-
npm install -g pnpm vercel
script
:
script
:
-
vercel pull --yes --environment=production --token=$VERCEL_TOKEN
-
vercel pull --yes --environment=production --token=$VERCEL_TOKEN
-
vercel build --prod --token=$VERCEL_TOKEN
-
vercel build --prod --token=$VERCEL_TOKEN
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment