Skip to content

Commit 8a9f493

Browse files
authored
Merge pull request #4 from Tracktor/fix/ci
fix: update package version to 1.3.1 and refine release workflow
2 parents 1373ee8 + 06e38de commit 8a9f493

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,12 @@ jobs:
3838
- name: Bump version & generate changelog
3939
id: bump
4040
run: |
41-
# Exécute standard-version et capture sa sortie
4241
OUTPUT=$(npx standard-version --release-as auto || true)
4342
echo "$OUTPUT"
4443
45-
# Vérifie si une version a été bumpée
4644
if echo "$OUTPUT" | grep -q "to null"; then
4745
echo "No new release detected (no feat/fix commits)."
46+
git restore package.json
4847
echo "should_publish=false" >> $GITHUB_OUTPUT
4948
else
5049
echo "should_publish=true" >> $GITHUB_OUTPUT
@@ -59,8 +58,7 @@ jobs:
5958
exit 0
6059
6160
- name: Push changes & tags
62-
run: |
63-
git push --follow-tags origin main
61+
run: git push --follow-tags origin main
6462

6563
- name: Build project
6664
run: bun run build

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@tracktor/react-google-tag-manager",
33
"description": "React library for use easily the Google Tag Manager",
4-
"version": null,
4+
"version": "1.3.1",
55
"private": false,
66
"license": "ISC",
77
"type": "module",

0 commit comments

Comments
 (0)