@govbr-ds/release-config 1.1.0-alpha.2 → 1.1.0-alpha.4

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/package.json +1 -1
  2. package/shared.config.js +10 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@govbr-ds/release-config",
3
- "version": "1.1.0-alpha.2",
3
+ "version": "1.1.0-alpha.4",
4
4
  "description": "Configuração compartilhada do semantic-release para projetos do GOVBR-DS no gitlab",
5
5
  "keywords": [
6
6
  "gitlab",
package/shared.config.js CHANGED
@@ -52,11 +52,12 @@ module.exports = {
52
52
  { type: 'docs', release: 'patch' },
53
53
  { type: 'feat', release: 'minor' },
54
54
  { type: 'fix', release: 'patch' },
55
+ { type: 'ops', release: false },
55
56
  { type: 'perf', release: 'patch' },
56
57
  { type: 'refactor', release: 'patch' },
57
- { type: 'removed', release: 'patch' },
58
+ { type: 'removed', release: 'minor' },
58
59
  { type: 'revert', release: 'minor' },
59
- { type: 'style', release: false },
60
+ { type: 'lint', release: false },
60
61
  { type: 'test', release: false },
61
62
  { type: 'wip', release: false },
62
63
  { scope: 'no-release', release: false },
@@ -80,13 +81,14 @@ module.exports = {
80
81
  { type: 'removed', section: ':fire: Removido' },
81
82
  { type: 'docs', section: ':memo: Documentação' },
82
83
  { type: 'fix', section: ':bug: Correções' },
84
+ { type: 'ops', section: ':technologist: Atividades Operacionais' },
83
85
  { type: 'perf', section: ':zap: Performance' },
84
86
  { type: 'refactor', section: ':recycle: Refatorado' },
85
- { type: 'revert', section: ':rewind: Revertido/Rollback' },
87
+ { type: 'revert', section: ':rewind: Revertido' },
86
88
  { type: 'build', hidden: true },
87
89
  { type: 'chore', hidden: true },
88
90
  { type: 'ci', hidden: true },
89
- { type: 'style', hidden: true },
91
+ { type: 'lint', hidden: true },
90
92
  { type: 'test', hidden: true },
91
93
  { type: 'wip', hidden: true },
92
94
  ],
@@ -98,10 +100,10 @@ module.exports = {
98
100
  commitsSort: ['subject', 'scope'],
99
101
  finalizeContext: (context) => {
100
102
  const date = new Date()
101
- const day = date.getDate()
102
- const month = date.getMonth() + 1
103
- const year = date.getFullYear()
104
- context.date = `${day}/${month}/${year}`
103
+ context.date = date.toLocaleString('pt-BR', {
104
+ timeZone: 'America/Sao_Paulo',
105
+ dateStyle: 'short',
106
+ })
105
107
  return context
106
108
  },
107
109
  },