From 9a26854f0d358a6ebf21b57557fa02dd87196fe9 Mon Sep 17 00:00:00 2001 From: Darin Spivey Date: Thu, 11 Apr 2024 13:54:17 -0400 Subject: [PATCH] fix(ci): Skip release:dry for forks and call commitlint When public forks open PRs, skip the release test since `branches` will be null due to `CHANGE_BRANCH` and `BRANCH_NAME` being null. Also, the `commitlint` script was not being called. Add it. Fixes: #46 --- Jenkinsfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index fe54bdf..840bc31 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -113,7 +113,10 @@ pipeline { script { sh "mkdir -p ${NPM_CONFIG_CACHE}" sh 'npm install' - sh "npm run release:dry" + sh 'npm run commitlint' + if (!(env.CHANGE_FORK ==~ /.+/)) { + sh "npm run release:dry" + } } } }