-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.versionrc.cjs
More file actions
103 lines (99 loc) · 2.02 KB
/
Copy path.versionrc.cjs
File metadata and controls
103 lines (99 loc) · 2.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
const fs = require('fs')
const path = require('path')
// Custom updater for TOML files (pyproject.toml)
const tomlUpdater = {
readVersion: function (contents) {
const versionMatch = contents.match(/^version\s*=\s*["'](.+?)["']/m)
return versionMatch ? versionMatch[1] : null
},
writeVersion: function (contents, version) {
return contents.replace(
/^version\s*=\s*["'].+?["']/m,
`version = "${version}"`
)
}
}
module.exports = {
types: [
{
type: 'feat',
section: '✨ Features'
},
{
type: 'fix',
section: '🐛 Bug Fixes'
},
{
type: 'perf',
section: '⚡ Performance Improvements'
},
{
type: 'refactor',
section: '♻️ Code Refactoring'
},
{
type: 'docs',
section: '📝 Documentation',
hidden: true
},
{
type: 'style',
section: '💄 Styles',
hidden: true
},
{
type: 'test',
section: '✅ Tests',
hidden: true
},
{
type: 'build',
section: '📦 Build System',
hidden: true
},
{
type: 'ci',
section: '👷 CI/CD',
hidden: true
},
{
type: 'chore',
section: '🔧 Chores',
hidden: true
}
],
skip: {
bump: false,
changelog: false,
commit: false,
tag: false
},
header:
'# Changelog\n\nAll notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.\n',
// Files to bump version in
bumpFiles: [
{
filename: 'package.json',
type: 'json'
},
{
filename: 'src-tauri/tauri.conf.json',
type: 'json'
},
{
filename: 'src-tauri/tauri.macos.conf.json',
type: 'json'
},
{
filename: 'src-tauri/tauri.windows.conf.json',
type: 'json'
}
],
// Files to read version from (package.json is default)
packageFiles: [
{
filename: 'package.json',
type: 'json'
}
]
}