-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
03029fb
commit fd22d6e
Showing
5 changed files
with
17 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Test, Build and Release | ||
name: Tool Release | ||
|
||
on: | ||
push: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,3 @@ | ||
#!/usr/bin/env sh | ||
|
||
# shellcheck disable=SC2034 | ||
while read lref new rref old | ||
do | ||
case $rref in | ||
refs/tags/*) | ||
if echo "$rref"; then | ||
version=$(echo "$rref" | sed s/.*v//) | ||
tmp_pkg=$(mktemp) | ||
echo "New tag found. Updating package.json to $version..." | ||
echo "Current version: $(jq -r .version ./package.json)" | ||
jq --indent 4 --arg version "$version" '.version = $version' ./package.json > "$tmp_pkg" && mv "$tmp_pkg" ./package.json | ||
bun biome format --write package.json | ||
git add package.json | ||
git commit -m "[skip-ci]: Bump version $version" | ||
exit 0 | ||
else | ||
bun branch-name-lint package.json | ||
fi;; | ||
*) | ||
;; | ||
esac | ||
done | ||
|
||
|
||
bun branch-name-lint package.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,6 +45,6 @@ | |
"releases": "release" | ||
}, | ||
"banned": ["wip"], | ||
"skip": ["skip-ci"] | ||
"skip": ["skip ci", "main", "develop"] | ||
} | ||
} |