Skip to content

Commit 2cf4465

Browse files
committed
feat: implement semantic release #7
1 parent dd5637b commit 2cf4465

File tree

9 files changed

+7497
-1
lines changed

9 files changed

+7497
-1
lines changed

.github/workflows/release.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Release
2+
on:
3+
push:
4+
branches:
5+
- main
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: write
10+
issues: write
11+
pull-requests: write
12+
13+
jobs:
14+
release:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0 # indispensable pour récupérer tous les tags
21+
22+
- name: Setup Node
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: '20'
26+
27+
- name: Install
28+
run: npm ci
29+
30+
- name: Release
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
run: npm run release

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,3 +275,4 @@ $RECYCLE.BIN/
275275
.vscode/
276276
SNAPSHOT.txt
277277
Makefile.local
278+
node_modules/

.releaserc.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"branches": [
3+
"main"
4+
],
5+
"tagFormat": "v${version}",
6+
"plugins": [
7+
"@semantic-release/commit-analyzer",
8+
"@semantic-release/release-notes-generator",
9+
["@semantic-release/changelog", { "changelogFile": "CHANGELOG.md" }],
10+
["@semantic-release/exec", { "prepareCmd": "scripts/update_version.sh ${nextRelease.version}" }],
11+
["@semantic-release/git", { "assets": ["CHANGELOG.md", "CMakeLists.txt"] }],
12+
"@semantic-release/github"
13+
]
14+
}

CHANGELOG.md

Whitespace-only changes.

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ add_executable(mario_isn MACOSX_BUNDLE
4343
)
4444

4545
# Indique où la placer dans le bundle
46-
set_source_files_properties(${CMAKE_SOURCE_DIR}/img/MyIcon.icns
46+
set_source_files_properties(${CMAKE_SOURCE_DIR}/ressources/MyIcon.icns
4747
PROPERTIES MACOSX_PACKAGE_LOCATION "Resources")
4848

4949
# Portée des includes du projet (headers locaux)

commitlint.config.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = { extends: ['@commitlint/config-conventional'] };

0 commit comments

Comments
 (0)