diff --git a/Jenkinsfile b/Jenkinsfile index b617bc7..95d3fce 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -22,11 +22,13 @@ pipeline { stage('Install dependencies') { steps { sh 'ls && npm install' // Install project dependencies + stash name: 'node_modules', includes: 'node_modules/**' } } stage('Build') { steps { + unstash 'node_modules' sh 'ls && npm ls vite && npm run build' // Build the project } }