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
88790b6a
Commit
88790b6a
authored
Oct 17, 2026
by
ThinhNC
Browse files
Options
Browse Files
Download
Plain Diff
Merge fix/export-custom-filename: isolate npm global prefix per CI_JOB_ID
parents
8a85667a
10948f92
Pipeline
#53770
passed with stage
in 1 minute and 20 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
.gitlab-ci.yml
.gitlab-ci.yml
+8
-8
No files found.
.gitlab-ci.yml
View file @
88790b6a
...
...
@@ -19,15 +19,15 @@ deploy_preview:
-
export NVM_DIR="$HOME/.nvm"
-
'
[
-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"
-
mkdir -p "$HOME/.npm-global"
-
npm config set prefix "$HOME/.npm-global"
-
export PATH="$HOME/.npm-global/bin:$PATH"
-
rm -rf "$HOME/.npm-global/lib/node_modules/vercel" "$HOME/.npm-global/lib/node_modules/@vercel"
-
export NPM_CONFIG_PREFIX="/tmp/npm-$CI_JOB_ID"
-
export PATH="$NPM_CONFIG_PREFIX/bin:$PATH"
-
npm install -g pnpm vercel
script
:
-
vercel pull --yes --environment=preview --token=$VERCEL_TOKEN
-
vercel build --token=$VERCEL_TOKEN
-
vercel deploy --prebuilt --archive=tgz --token=$VERCEL_TOKEN
after_script
:
-
rm -rf "/tmp/npm-$CI_JOB_ID"
variables
:
VERCEL_ORG_ID
:
$VERCEL_ORG_ID
VERCEL_PROJECT_ID
:
$VERCEL_PROJECT_ID
...
...
@@ -44,15 +44,15 @@ deploy_production:
-
export NVM_DIR="$HOME/.nvm"
-
'
[
-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"
-
mkdir -p "$HOME/.npm-global"
-
npm config set prefix "$HOME/.npm-global"
-
export PATH="$HOME/.npm-global/bin:$PATH"
-
rm -rf "$HOME/.npm-global/lib/node_modules/vercel" "$HOME/.npm-global/lib/node_modules/@vercel"
-
export NPM_CONFIG_PREFIX="/tmp/npm-$CI_JOB_ID"
-
export PATH="$NPM_CONFIG_PREFIX/bin:$PATH"
-
npm install -g pnpm vercel
script
:
-
vercel pull --yes --environment=production --token=$VERCEL_TOKEN
-
vercel build --prod --token=$VERCEL_TOKEN
-
vercel deploy --prebuilt --prod --archive=tgz --token=$VERCEL_TOKEN
after_script
:
-
rm -rf "/tmp/npm-$CI_JOB_ID"
variables
:
VERCEL_ORG_ID
:
$VERCEL_ORG_ID
VERCEL_PROJECT_ID
:
$VERCEL_PROJECT_ID
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