Skip to content

Commit

Permalink
chore(semantic-release): fix semantic release config
Browse files Browse the repository at this point in the history
Added fmt fixes and the message error has been fixed.

Ref: LOG-16596
  • Loading branch information
seeruyy committed Apr 25, 2023
1 parent a8520eb commit 58d7b4f
Showing 1 changed file with 20 additions and 13 deletions.
33 changes: 20 additions & 13 deletions release.config.js
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]'
}]
]
}

0 comments on commit 58d7b4f

Please sign in to comment.