Skip to content

Commit bf8466c

Browse files
authored
Merge pull request #28 from CodinGame/fix-semantic-release-config
Fix semantic release config
2 parents f4afd53 + b5cd829 commit bf8466c

File tree

4 files changed

+248
-7
lines changed

4 files changed

+248
-7
lines changed

.github/workflows/check_build.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,30 @@ jobs:
2323
steps:
2424
- name: Checkout
2525
uses: actions/checkout@v2
26+
with:
27+
fetch-depth: 0
2628
- name: Setup Node.js
2729
uses: actions/setup-node@v1
2830
with:
2931
node-version: 16.x
3032
- name: Install dependencies
3133
run: npm ci
3234
- name: Build
33-
run: npm run build
35+
run: npm run build
36+
- name: Generate release notes preview
37+
id: build-release-notes
38+
uses: guilhermetod/[email protected]
39+
- name: Comment release notes preview
40+
if: steps.build-release-notes.outputs.releaseNotes
41+
uses: peter-evans/create-or-update-comment@v1
42+
with:
43+
issue-number: ${{ github.event.number }}
44+
body: |
45+
## 👋 Hey there!
46+
Thank you for you contribution. Below is a preview of the release notes if your PR gets merged.
47+
Please, make sure it includes all your significant changes with descriptive messages.
48+
Keep in mind that release notes are automatically generated from the commit messages according to [conventional commits](https://www.conventionalcommits.org/).
49+
50+
---
51+
52+
${{ steps.build-release-notes.outputs.releaseNotes }}

package-lock.json

Lines changed: 225 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"@codingame/commitlint-config-codingame": "^1.0.3",
3737
"@codingame/eslint-config": "^1.1.6",
3838
"@codingame/eslint-config-react": "^1.0.1",
39-
"@codingame/semantic-release-rules": "^1.0.0",
39+
"@codingame/semantic-release-config": "^1.2.0",
4040
"@codingame/tsconfig": "^1.1.0",
4141
"@commitlint/cli": "^17.3.0",
4242
"@types/deep-equal": "^1.0.1",

release.config.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
module.exports = {
2+
...require('@codingame/semantic-release-config'),
23
branches: [
34
'main'
45
],
56
plugins: [
6-
['@semantic-release/commit-analyzer', {
7-
preset: 'conventionalcommits',
8-
releaseRules: '@codingame/semantic-release-rules'
9-
}],
7+
'@semantic-release/commit-analyzer',
108
'@semantic-release/release-notes-generator',
119
'@semantic-release/npm',
1210
'@semantic-release/github'

0 commit comments

Comments
 (0)