https://github.com/renebentes/semantic-release
POC de uso da ferramenta semantic-version
https://github.com/renebentes/semantic-release
github-actions poc release-automation semantic-version
Last synced: 4 months ago
JSON representation
POC de uso da ferramenta semantic-version
- Host: GitHub
- URL: https://github.com/renebentes/semantic-release
- Owner: renebentes
- License: mit
- Created: 2024-06-14T14:05:00.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-29T18:22:34.000Z (almost 2 years ago)
- Last Synced: 2025-08-13T05:39:48.029Z (10 months ago)
- Topics: github-actions, poc, release-automation, semantic-version
- Homepage:
- Size: 55.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# semantic-release
> Repositório para testar workflow com semantic-release
## Tecnologias Utilizadas
- [Semantic Release](https://github.com/semantic-release/semantic-release)
## Como configurar?
**ATENÇÃO:** Não deixe de conferir a [documentação oficial](https://semantic-release.gitbook.io/semantic-release) da ferramenta.
Por padrão, a ferramenta busca por um arquivo de configuração na raiz do projeto com o nome de .releaserc, escritas em YAML ou JSON, podendo ou não ter extensão. [Mais detalhes](https://semantic-release.gitbook.io/semantic-release/usage/configuration)
Nesta prova de conceito (POC), utilizamos o seguinte:
```json
// .releaserc.json
"branches": ["main"],
"plugins": [
"@semantic-release/commit-analyzer",
[
"@semantic-release/release-notes-generator",
{
"presetConfig": {
"types": [
{ "type": "feat", "section": "Features" },
{ "type": "fix", "section": "Bug Fixes" },
{ "type": "chore", "section": "Miscellaneous" },
{ "type": "docs", "section": "Documentation" },
{ "type": "refactor", "section": "Refactoring" },
{ "type": "perf", "section": "Performance" },
{ "type": "test", "section": "Testing" }
]
}
}
],
"@semantic-release/changelog",
[
"@semantic-release/github",
{
"assignees": "renebentes"
}
],
[
"@semantic-release/exec",
{
"prepareCmd": "echo ${nextRelease.version} > version.txt"
}
],
[
"@semantic-release/git",
{
"assets": ["CHANGELOG.md", "version.txt"]
}
]
],
"preset": "conventionalcommits"
```
## Autor
[Rene Bentes Pinto](http://github.com/renebentes)
## Contribuindo
Contribuições são bem-vindas!
Se você achar algum problema ou tiver sugestões para melhorias, por favor, abra uma [_Issue_][issues] ou envie uma [_Pull Request (PR)_][pulls] para nosso [repositório][repo].
Você também pode verificar as _Issues_ e _Pull Requests_ existentes com os quais poderia ajudar.
Ao contribuir com este projeto, por favor, siga o estilo de codificação existente, use [conventional commits][commits] em suas mensagens de commit e submeta suas alterações em uma branch separada.
## Notas de Lançamento
Você pode [ver as notas de lançamento aqui.](CHANGELOG.md)
## Licença
Copyright (c) 2024 Rene Bentes Pinto
Este projeto está sob a licença **MIT**. Veja o arquivo [LICENSE](LICENSE) para mais detalhes.
[repo]: http://github.com/renebentes/repository
[issues]: ../../issues
[pulls]: ../../pulls
[commits]: https://www.conventionalcommits.org/en/v1.0.0/