@taiga-ui/release-it-config 0.197.0 → 0.200.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +4 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -9,7 +9,6 @@ const changelog = `npx auto-changelog -c ${path}/index.json --handlebars-setup $
|
|
|
9
9
|
module.exports = {
|
|
10
10
|
git: {
|
|
11
11
|
addUntrackedFiles: true,
|
|
12
|
-
commitArgs: ['-S'],
|
|
13
12
|
commitMessage: 'chore(release): v${version}',
|
|
14
13
|
pushArgs: ['--follow-tags'],
|
|
15
14
|
requireBranch: 'main',
|
|
@@ -27,15 +26,17 @@ module.exports = {
|
|
|
27
26
|
},
|
|
28
27
|
hooks: {
|
|
29
28
|
'after:bump': [
|
|
30
|
-
'git tag v${version}',
|
|
29
|
+
'git tag v${version}', // for include last tag inside CHANGELOG
|
|
31
30
|
'echo "new version is v${version}"',
|
|
32
|
-
`${changelog} --template ${path}/templates/changelog.hbs -p`,
|
|
31
|
+
`${changelog} --template ${path}/templates/changelog.hbs -p > /dev/null`,
|
|
33
32
|
'npx prettier CHANGELOG.md --write || echo "Missing prettier step"',
|
|
34
33
|
'git add CHANGELOG.md',
|
|
34
|
+
'git fetch --prune --prune-tags origin', // cleanup git workspace
|
|
35
35
|
'npm run bump || echo "Missing bump step"',
|
|
36
36
|
],
|
|
37
37
|
'after:release':
|
|
38
38
|
'echo Successfully released ${name} v${version} to ${repo.repository}.',
|
|
39
|
+
'before:init': 'git fetch --prune --prune-tags origin',
|
|
39
40
|
},
|
|
40
41
|
npm: {
|
|
41
42
|
allowSameVersion: true,
|