-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(semantic-release): fix semantic release config
Added fmt fixes and the message error has been fixed. Ref: LOG-16596
- Loading branch information
Showing
1 changed file
with
20 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,31 @@ | ||
'use strict' | ||
|
||
const now = new Date() | ||
const year = now.getFullYear() | ||
const day = String(now.getDate()).padStart(2, '0') | ||
const month = String(now.getMonth() + 1).padStart(2, '0') | ||
|
||
module.exports = { | ||
'extends': '@answerbook/release-config-logdna' | ||
, 'branches': ["main"] | ||
, "plugins": [ | ||
"@semantic-release/commit-analyzer", | ||
"@semantic-release/release-notes-generator", | ||
"@semantic-release/changelog", | ||
["@semantic-release/exec", { | ||
"prepareCmd": "cargo set-version ${nextRelease.version} && cargo package --allow-dirty --target-dir dist; sleep 2" | ||
extends: '@answerbook/release-config-logdna' | ||
, branches: ['main'] | ||
, plugins: [ | ||
'@semantic-release/commit-analyzer', | ||
'@semantic-release/release-notes-generator', | ||
'@semantic-release/changelog', | ||
['@semantic-release/exec', { | ||
prepareCmd: 'cargo set-version ${nextRelease.version} && ' | ||
+ 'cargo package --allow-dirty --target-dir dist; sleep 2' | ||
}], | ||
"@semantic-release/github", | ||
["@semantic-release/git", { | ||
"assets": [ | ||
'@semantic-release/github', | ||
['@semantic-release/git', { | ||
assets: [ | ||
"CHANGELOG.md", | ||
"package.json", | ||
"Cargo*", | ||
"dist/*" | ||
], | ||
"message": 'release: ${year}-${month}-${day}, Version <%= nextRelease.version %> [skip ci]' | ||
] | ||
, message: `release: ${year}-${month}-${day}, ` | ||
+ 'Version <%= nextRelease.version %> [skip ci]' | ||
}] | ||
] | ||
} |