Skip to content

Commit

Permalink
fix: add semantic-release exec plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
jackdbd committed Feb 6, 2024
1 parent 6ec086c commit b082bd4
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 3 deletions.
8 changes: 8 additions & 0 deletions config/semantic-release-plugins.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,13 @@ const commit_analyzer = [
}
]

const exec = [
'@semantic-release/exec',
{
verifyConditionsCmd: 'npx publint run .'
}
]

// https://github.com/semantic-release/release-notes-generator
const release_notes_generator = [
'@semantic-release/release-notes-generator',
Expand Down Expand Up @@ -133,6 +140,7 @@ const telegram = [
module.exports = {
changelog,
commit_analyzer,
exec,
git,
github,
npm,
Expand Down
25 changes: 23 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
"@microsoft/api-documenter": "^7.23.20",
"@microsoft/api-extractor": "^7.39.4",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/exec": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@thi.ng/transclude": "^0.1.63",
"@types/debug": "^4.1.12",
Expand Down
4 changes: 3 additions & 1 deletion release.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
const {
changelog,
commit_analyzer,
exec,
git,
github,
npm,
Expand All @@ -25,13 +26,14 @@ const config = {
commit_analyzer,
release_notes_generator,
telegram,
exec,
changelog,
npm,
github,
git
]
}

console.log('=== semantic-release ===', config)
// console.log('=== semantic-release ===', config)

module.exports = config

0 comments on commit b082bd4

Please sign in to comment.