Skip to content

Commit

Permalink
feat: enhance semantic release configuration with additional plugins …
Browse files Browse the repository at this point in the history
…and update workflow
  • Loading branch information
bucurdavid committed Feb 14, 2025
1 parent 2be3e8c commit b05512b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
pnpm add -D semantic-release
pnpm add -D semantic-release @semantic-release/git @semantic-release/changelog @semantic-release/commit-analyzer @semantic-release/release-notes-generator @semantic-release/npm
OUTPUT=$(unset GITHUB_ACTIONS && npx semantic-release --dry-run --no-ci)
VERSION=$(echo "$OUTPUT" | grep -o "The next release version is [0-9]*\.[0-9]*\.[0-9]*" | awk '{print $6}')
if [[ "${{ steps.release_type.outputs.type }}" == "alpha" ]]; then
Expand Down
12 changes: 6 additions & 6 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"branches": [
"main",
{"name": "develop", "prerelease": "alpha"}
],
"branches": ["main", {"name": "develop", "prerelease": "alpha"}],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/npm",
"@semantic-release/github",
"@semantic-release/git"
"@semantic-release/changelog",
["@semantic-release/git", {
"assets": ["package.json", "CHANGELOG.md"],
"message": "chore(release): ${nextRelease.version}\n\n${nextRelease.notes}"
}]
]
}

0 comments on commit b05512b

Please sign in to comment.