@govbr-ds/release-config 4.3.0 → 4.5.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/README.md +1 -1
- package/package.json +4 -7
- package/src/index.js +16 -9
package/README.md
CHANGED
|
@@ -57,7 +57,7 @@ Os detalhes da causa não são importantes agora, mas caso esteja com o problema
|
|
|
57
57
|
|
|
58
58
|
Outras alternativas para corrigir o bug são:
|
|
59
59
|
|
|
60
|
-
1. Incluir a dependência `"conventional-changelog-conventionalcommits": "^
|
|
60
|
+
1. Incluir a dependência `"conventional-changelog-conventionalcommits": "^9.1.0"` no seu `package.json`.
|
|
61
61
|
1. Fazer o downgrade das suas dependências do semantic-release
|
|
62
62
|
|
|
63
63
|
## Como contribuir?
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@govbr-ds/release-config",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.5.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Configuração compartilhada do semantic-release para projetos do GovBR-DS",
|
|
6
6
|
"keywords": [
|
|
@@ -26,12 +26,9 @@
|
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@semantic-release/changelog": "^6.0.3",
|
|
29
|
-
"@semantic-release/commit-analyzer": "^13.0.1",
|
|
30
29
|
"@semantic-release/git": "^10.0.1",
|
|
31
|
-
"@semantic-release/gitlab": "^13.2.
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"conventional-changelog-conventionalcommits": "^8.0.0",
|
|
35
|
-
"semantic-release": "^24.2.3"
|
|
30
|
+
"@semantic-release/gitlab": "^13.2.6",
|
|
31
|
+
"conventional-changelog-conventionalcommits": "9.1.0",
|
|
32
|
+
"semantic-release": "^24.2.7"
|
|
36
33
|
}
|
|
37
34
|
}
|
package/src/index.js
CHANGED
|
@@ -17,23 +17,28 @@ const commitAnalyzer = [
|
|
|
17
17
|
preset: 'conventionalcommits',
|
|
18
18
|
releaseRules: [
|
|
19
19
|
{ breaking: true, release: 'major' },
|
|
20
|
+
{ scope: 'minor', release: 'minor' },
|
|
21
|
+
{ scope: 'monorepo', release: false },
|
|
22
|
+
{ scope: 'no-release', release: false },
|
|
23
|
+
{ scope: 'patch', release: 'patch' },
|
|
24
|
+
{ scope: 'site', release: false },
|
|
20
25
|
{ type: '*!', release: 'major' },
|
|
21
26
|
{ type: 'build', release: false },
|
|
27
|
+
{ type: 'bump', release: 'minor' },
|
|
22
28
|
{ type: 'chore', release: false },
|
|
23
29
|
{ type: 'ci', release: false },
|
|
24
30
|
{ type: 'deprecated', release: false },
|
|
25
31
|
{ type: 'docs', release: 'patch' },
|
|
26
32
|
{ type: 'feat', release: 'minor' },
|
|
27
33
|
{ type: 'fix', release: 'patch' },
|
|
34
|
+
{ type: 'lint', release: false },
|
|
28
35
|
{ type: 'ops', release: false },
|
|
29
36
|
{ type: 'perf', release: 'patch' },
|
|
30
37
|
{ type: 'refactor', release: 'patch' },
|
|
31
38
|
{ type: 'removed', release: 'minor' },
|
|
32
39
|
{ type: 'revert', release: 'minor' },
|
|
33
|
-
{ type: 'lint', release: false },
|
|
34
40
|
{ type: 'test', release: false },
|
|
35
41
|
{ type: 'wip', release: false },
|
|
36
|
-
{ scope: 'no-release', release: false },
|
|
37
42
|
],
|
|
38
43
|
parserOpts: {
|
|
39
44
|
noteKeywords: ['BREAKING CHANGE', 'BREAKING CHANGES', 'BREAKING'],
|
|
@@ -48,19 +53,21 @@ const releaseNotesGenerator = [
|
|
|
48
53
|
presetConfig: {
|
|
49
54
|
header: '# CHANGELOG',
|
|
50
55
|
types: [
|
|
56
|
+
{ type: 'build', hidden: true },
|
|
57
|
+
{ type: 'bump', section: '🆙 ATUALIZAÇÃO DE VERSÃO' },
|
|
58
|
+
{ type: 'chore', hidden: true },
|
|
59
|
+
{ type: 'ci', hidden: true },
|
|
51
60
|
{ type: 'deprecated', section: '👎 DEPRECIADO' },
|
|
52
|
-
{ type: 'feat', section: '✨ NOVIDADES' },
|
|
53
|
-
{ type: 'removed', section: '🚧 REMOVIDO' },
|
|
54
61
|
{ type: 'docs', section: '📚 DOCUMENTAÇÃO' },
|
|
62
|
+
{ type: 'feat', section: '✨ NOVIDADES' },
|
|
55
63
|
{ type: 'fix', section: '🐛 CORREÇÕES' },
|
|
64
|
+
{ type: 'lint', hidden: true },
|
|
56
65
|
{ type: 'ops', section: '🔧 ATIVIDADES OPERACIONAIS' },
|
|
57
66
|
{ type: 'perf', section: '🚀 PERFORMANCE' },
|
|
58
67
|
{ type: 'refactor', section: '🔁 REFATORADO' },
|
|
68
|
+
{ type: 'removed', section: '🚧 REMOVIDO' },
|
|
59
69
|
{ type: 'revert', section: '⏪ REVERTIDO' },
|
|
60
|
-
{ type: '
|
|
61
|
-
{ type: 'chore', hidden: true },
|
|
62
|
-
{ type: 'ci', hidden: true },
|
|
63
|
-
{ type: 'lint', hidden: true },
|
|
70
|
+
{ type: 'site', hidden: true },
|
|
64
71
|
{ type: 'test', hidden: true },
|
|
65
72
|
{ type: 'wip', hidden: true },
|
|
66
73
|
],
|
|
@@ -116,7 +123,7 @@ const gitlab = [
|
|
|
116
123
|
'@semantic-release/gitlab',
|
|
117
124
|
{
|
|
118
125
|
successComment:
|
|
119
|
-
':tada: Issue/Merge Request incluído(a) na versão v${nextRelease.version} :tada:\n\nPara mais detalhes:\n- [GitLab release]($
|
|
126
|
+
':tada: Issue/Merge Request incluído(a) na versão v${nextRelease.version} :tada:\n\nPara mais detalhes:\n- [GitLab release]($CI_PROJECT_URL/-/releases/v${nextRelease.version})\n- [GitLab tag]($CI_PROJECT_URL/-/tags/v${nextRelease.version})',
|
|
120
127
|
failComment:
|
|
121
128
|
'A release a partir da branch ${branch.name} falhou devido aos seguintes erros:\n- ${errors.map(err => err.message).join("\\n- ")}',
|
|
122
129
|
failTitle: 'A release automática falhou 🚨',
|