diff --git a/Jenkinsfile b/Jenkinsfile index c59834d..236eb8e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -20,7 +20,20 @@ pipeline { } } + stage('Lint') { + steps { + sh ''' + corepack enable + pnpm install --registry=https://registry.npmmirror.com + pnpm run lint + ''' + } + } + stage('Build') { + when { + expression { currentBuild.currentResult == 'SUCCESS' } + } steps { sh ''' corepack enable