Aller au contenu

Tags & changelog

·1 min·
Git
Git - Cet article fait partie d'une série.
Partie 7: Cet article

Quand un jalon est atteint :

git tag -a v0.1.0 -m "First end-to-end: extract -> bronze -> silver"
git push --tags

Un CHANGELOG.md peut ensuite être généré automatiquement à partir des commits :

# 1) Initialiser (tout l’historique)
npx conventional-changelog -p conventionalcommits -i CHANGELOG.md -s -r 0
# 2) Mettre à jour (depuis le dernier tag)
npx conventional-changelog -p conventionalcommits -i CHANGELOG.md -s
# 3) Committer
git add CHANGELOG.md && git commit -m "docs(repo): update changelog" && git push
Thibault CLEMENT - Intechnia
Auteur
Thibault CLEMENT - Intechnia
Data scientist
Git - Cet article fait partie d'une série.
Partie 7: Cet article