Skip to content

Commit

Permalink
fix(ci): Skip release:dry for forks and call commitlint
Browse files Browse the repository at this point in the history
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
  • Loading branch information
darinspivey committed Apr 11, 2024
1 parent 6491654 commit 9a26854
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
}
Expand Down

0 comments on commit 9a26854

Please sign in to comment.