From 96ddb09ea3e31037e9815c6594665f93644a008f Mon Sep 17 00:00:00 2001 From: Timothy Yin Date: Mon, 9 Feb 2026 13:37:47 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E6=B7=BB=E5=8A=A0=20Lint=20=E9=98=B6?= =?UTF-8?q?=E6=AE=B5=E5=88=B0=20Jenkinsfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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