Skip to content

Commit 53afc99

Browse files
authored
Merge pull request #35 from CodinGame/improve-ci
Improve ci
2 parents ba8f903 + b6df57b commit 53afc99

File tree

5 files changed

+1576
-1248
lines changed

5 files changed

+1576
-1248
lines changed

.github/workflows/check_build.yml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,31 @@ jobs:
2222

2323
steps:
2424
- name: Checkout
25-
uses: actions/checkout@v2
25+
uses: actions/checkout@v3
26+
with:
27+
fetch-depth: 0
2628
- name: Setup Node.js
27-
uses: actions/setup-node@v1
29+
uses: actions/setup-node@v3
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 }}

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111

1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v3
1515
- name: Setup Node.js
16-
uses: actions/setup-node@v1
16+
uses: actions/setup-node@v3
1717
with:
1818
node-version: 16.x
1919
- name: Install dependencies

0 commit comments

Comments
 (0)