@taiga-ui/release-it-config 0.219.0 → 0.221.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.
Files changed (2) hide show
  1. package/index.js +15 -8
  2. package/package.json +2 -1
package/index.js CHANGED
@@ -1,22 +1,28 @@
1
1
  /* eslint-disable no-template-curly-in-string */
2
- const rootPackage = require(require('node:path').resolve(process.cwd(), 'package.json'));
3
2
  const path = require('node:path').resolve(
4
3
  process.cwd(),
5
4
  'node_modules/@taiga-ui/auto-changelog-config',
6
5
  );
7
6
 
8
- const changelog = `npx auto-changelog -c ${path}/index.json --handlebars-setup ${path}/setup.js`;
9
- const prependEnabled = rootPackage['auto-changelog']?.prepend ?? false;
10
- const template = rootPackage['auto-changelog']?.template ?? 'templates/changelog.hbs';
11
- const prepend = prependEnabled ? '--prepend --starting-version v${version}' : '';
7
+ const changelog = `npx auto-changelog -c ${path}/index.json --template ${path}/template.hbs --handlebars-setup ${path}/setup.js`;
12
8
 
13
9
  module.exports = {
10
+ plugins: {
11
+ '@release-it/conventional-changelog': {
12
+ gitRawCommitsOpts: {
13
+ path: '.',
14
+ },
15
+ infile: false,
16
+ path: '.',
17
+ preset: 'conventionalcommits',
18
+ },
19
+ },
14
20
  git: {
15
21
  addUntrackedFiles: true,
16
22
  changelog: false,
17
23
  commitMessage: 'chore(release): v${version}',
18
24
  pushArgs: ['--follow-tags'],
19
- requireBranch: 'main',
25
+ requireBranch: false,
20
26
  requireCleanWorkingDir: false,
21
27
  tagName: 'v${version}',
22
28
  },
@@ -27,18 +33,19 @@ module.exports = {
27
33
  submit: false,
28
34
  },
29
35
  release: true,
30
- releaseNotes: `${changelog} --template ${path}/templates/note.hbs --unreleased-only --stdout`,
36
+ releaseNotes: `${changelog} --unreleased-only --stdout`,
31
37
  },
32
38
  hooks: {
33
39
  'after:bump': [
34
40
  'git tag v${version} > /dev/null', // for include last tag inside CHANGELOG
35
41
  'echo "new version is v${version}"',
36
- `${changelog} ${prepend} --template ${path}/${template} -p > /dev/null`,
42
+ `${changelog} --prepend --starting-version v$\{version} -p > /dev/null`,
37
43
  'npx prettier CHANGELOG.md --write > /dev/null',
38
44
  'git fetch --prune --prune-tags origin', // cleanup git workspace
39
45
  'git add CHANGELOG.md',
40
46
  'npx syncer || echo ""',
41
47
  'npm run after:bump -s || echo ""',
48
+ 'git add .',
42
49
  ],
43
50
  'after:release':
44
51
  'echo Successfully released ${name} v${version} to ${repo.repository}.',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ui/release-it-config",
3
- "version": "0.219.0",
3
+ "version": "0.221.0",
4
4
  "description": "Taiga UI release-it config",
5
5
  "keywords": [
6
6
  "release-it"
@@ -12,6 +12,7 @@
12
12
  "license": "Apache-2.0",
13
13
  "main": "index.js",
14
14
  "peerDependencies": {
15
+ "@release-it/conventional-changelog": "8.0.2",
15
16
  "release-it": "17.6.0"
16
17
  },
17
18
  "publishConfig": {