Vendored
+5
-2
@@ -10,11 +10,13 @@ pipeline {
|
|||||||
agent {
|
agent {
|
||||||
docker {
|
docker {
|
||||||
image 'node:20-alpine'
|
image 'node:20-alpine'
|
||||||
args '-v ${WORKSPACE}/node_modules:/app/node_modules'
|
args '-u root -v ${WORKSPACE}/.npm:/.npm -v ${WORKSPACE}/node_modules:/app/node_modules'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
sh '''
|
sh '''
|
||||||
|
npm config set cache /.npm
|
||||||
|
chown -R $(id -u):$(id -g) /.npm 2>/dev/null || true
|
||||||
npm install
|
npm install
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
@@ -24,11 +26,12 @@ pipeline {
|
|||||||
agent {
|
agent {
|
||||||
docker {
|
docker {
|
||||||
image 'node:20-alpine'
|
image 'node:20-alpine'
|
||||||
args '-v ${WORKSPACE}/node_modules:/app/node_modules'
|
args '-u root -v ${WORKSPACE}/.npm:/.npm -v ${WORKSPACE}/node_modules:/app/node_modules'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
sh '''
|
sh '''
|
||||||
|
chown -R $(id -u):$(id -g) /.npm 2>/dev/null || true
|
||||||
npm run type-check
|
npm run type-check
|
||||||
npm run build
|
npm run build
|
||||||
'''
|
'''
|
||||||
|
|||||||
Reference in New Issue
Block a user