Compare commits

...

2 Commits

Author SHA1 Message Date
Ludovic Ortega
2ecdeb6901 Update bin/publish.sh
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2026-02-15 15:26:10 +01:00
Ludovic Ortega
1db4abff8c chore: add a script to automated release process
Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr>
2026-02-15 00:42:18 +01:00

12
bin/publish.sh Normal file
View File

@@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -e
# Check arguments
if [ "$#" -ne 1 ]; then
echo -e "Usage: $0 <version>\n\nExample: $0 1.2.3"
exit 1
fi
# Update package.json, commit the file and create a tag
npm version "$1" -m "chore: update version to v$1" --sign-git-tag