-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: set the configuration of semantic-release
- Loading branch information
1 parent
34e3c43
commit 4e8e63e
Showing
4 changed files
with
169 additions
and
24 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
module.exports = { | ||
branches: [ | ||
"main", // Para o branch principal | ||
"develop", // Para o branch de desenvolvimento | ||
"hotfix/*", // Para branches de hotfix, como hotfix/1.0.0 | ||
"next", // Para o branch "next" (pré-lançamento) | ||
"next-major", // Para o branch "next-major" (para versões maiores) | ||
{ | ||
name: "beta", // Para o branch beta | ||
prerelease: true | ||
}, | ||
{ | ||
name: "alpha", // Para o branch alpha | ||
prerelease: true | ||
} | ||
], | ||
plugins: [ | ||
"@semantic-release/commit-analyzer", // Análise de commits | ||
"@semantic-release/release-notes-generator", // Geração de notas de release | ||
"@semantic-release/changelog", // Atualização de changelog | ||
[ | ||
"@semantic-release/github", // Publicação no GitHub | ||
{ | ||
assets: [ | ||
{ path: "dist/*.js", label: "JavaScript distribution" }, | ||
{ path: "dist/*.map", label: "Source map" } | ||
] | ||
} | ||
], | ||
[ | ||
"@semantic-release/git", // Commit das mudanças no Git | ||
{ | ||
assets: ["package.json", "CHANGELOG.md"], | ||
message: "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" | ||
} | ||
] | ||
] | ||
}; | ||
|