Skip to content

Commit

Permalink
fix: Correct semantic-releaser to use conventional-commits
Browse files Browse the repository at this point in the history
  • Loading branch information
bryantbiggs committed Apr 9, 2022
1 parent b5f8c1b commit edf2efc
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/semantic-releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
- '**.tf'
- '**.tmpl'
- '!examples/**.tf'
- '.github/workflows/semantic-releaser.yml'

jobs:
release:
Expand All @@ -23,9 +24,13 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 14
node-version: 16

- name: Release
uses: cycjimmy/semantic-release-action@v2
with:
semantic_version: 18.0.0
extra_plugins: |
conventional-changelog-conventionalcommits@4.6.3
env:
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE }}
run: npx semantic-release
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE }}
14 changes: 12 additions & 2 deletions .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,18 @@
"main"
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/commit-analyzer",
{
"preset": "conventionalcommits"
}
],
[
"@semantic-release/release-notes-generator",
{
"preset": "conventionalcommits"
}
],
"@semantic-release/github"
]
}

0 comments on commit edf2efc

Please sign in to comment.