Skip to content

Commit

Permalink
fix: set the configuration of semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
lfbarrile01 committed Dec 5, 2024
1 parent 34e3c43 commit 4e8e63e
Show file tree
Hide file tree
Showing 4 changed files with 169 additions and 24 deletions.
24 changes: 0 additions & 24 deletions .release.rc

This file was deleted.

125 changes: 125 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@
"@formatjs/cli": "^6.3.5",
"@formatjs/cli-lib": "^6.6.1",
"@playwright/test": "^1.48.2",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/commit-analyzer": "^13.0.0",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^11.0.1",
"@semantic-release/release-notes-generator": "^14.0.1",
"@storybook/addon-essentials": "^8.3.6",
"@storybook/addon-interactions": "^8.3.6",
"@storybook/addon-links": "^8.3.6",
Expand Down
39 changes: 39 additions & 0 deletions release.config.js
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}"
}
]
]
};

0 comments on commit 4e8e63e

Please sign in to comment.