Skip to content

Commit edf2efc

Browse files
committed
fix: Correct semantic-releaser to use conventional-commits
1 parent b5f8c1b commit edf2efc

File tree

2 files changed

+20
-5
lines changed

2 files changed

+20
-5
lines changed

.github/workflows/semantic-releaser.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
- '**.tf'
99
- '**.tmpl'
1010
- '!examples/**.tf'
11+
- '.github/workflows/semantic-releaser.yml'
1112

1213
jobs:
1314
release:
@@ -23,9 +24,13 @@ jobs:
2324
- name: Setup Node.js
2425
uses: actions/setup-node@v2
2526
with:
26-
node-version: 14
27+
node-version: 16
2728

2829
- name: Release
30+
uses: cycjimmy/semantic-release-action@v2
31+
with:
32+
semantic_version: 18.0.0
33+
extra_plugins: |
34+
2935
env:
30-
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE }}
31-
run: npx semantic-release
36+
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE }}

.releaserc.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,18 @@
33
"main"
44
],
55
"plugins": [
6-
"@semantic-release/commit-analyzer",
7-
"@semantic-release/release-notes-generator",
6+
[
7+
"@semantic-release/commit-analyzer",
8+
{
9+
"preset": "conventionalcommits"
10+
}
11+
],
12+
[
13+
"@semantic-release/release-notes-generator",
14+
{
15+
"preset": "conventionalcommits"
16+
}
17+
],
818
"@semantic-release/github"
919
]
1020
}

0 commit comments

Comments
 (0)