-
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.
Working through some ideas for a simple release process.
- Loading branch information
1 parent
f848baf
commit 7accd5b
Showing
4 changed files
with
30 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
## 0.1.0 (2023-11-30) | ||
|
||
- A bit of renaming. ([425b267](https://github.com/digitalBush/modpod/commit/425b267)) | ||
- Adding badges ([b51a7d7](https://github.com/digitalBush/modpod/commit/b51a7d7)) | ||
- Hello modpod ([f886633](https://github.com/digitalBush/modpod/commit/f886633)) |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
gh_url=$(gh repo view --json url -q ".url") | ||
prev_tag=$(git describe --tags --abbrev=0) | ||
new_version=$(npm pkg get version|xargs) | ||
new_log=$(git log --pretty="* %s ([%h]($gh_url/commit/%H))" $prev_tag..) | ||
|
||
echo "## $new_version ($(date +"%Y-%m-%d")) | ||
$new_log | ||
$(cat CHANGELOG.md)" > CHANGELOG.md | ||
|
||
git add CHANGELOG.md |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
if [ $(git branch --show-current) != "main" ]; then | ||
echo "Error: Not on main branch"; | ||
exit 1; | ||
fi | ||
|
||
npm run check | ||
npm t |