mirror of
https://github.com/ivabus/gui
synced 2025-04-23 14:07:14 +03:00
Add bump job (#571)
This commit is contained in:
parent
b74352fb54
commit
59bc9d8ef0
1 changed files with 31 additions and 5 deletions
36
README.md
36
README.md
|
@ -18,12 +18,11 @@ Under the hood tea/gui installs and manages your packages with [`tea/cli`]
|
||||||
while exposing additional functionality, features and informational touches
|
while exposing additional functionality, features and informational touches
|
||||||
that complement and expand upon the nature of package management.
|
that complement and expand upon the nature of package management.
|
||||||
|
|
||||||
To install the gui, visit: https://tea.xyz/gui/ and download the latest
|
To install the gui, visit: <https://tea.xyz/gui/> and download the latest
|
||||||
version. The gui auto-updates itself.
|
version. The gui auto-updates itself.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Contributing to `tea/gui`
|
# Contributing to `tea/gui`
|
||||||
|
|
||||||
If you have suggestions or ideas, start a [discussion]. If we agree, we’ll
|
If you have suggestions or ideas, start a [discussion]. If we agree, we’ll
|
||||||
|
@ -40,7 +39,6 @@ technologies are used:
|
||||||
- [fontastic](https://fontastic.me)
|
- [fontastic](https://fontastic.me)
|
||||||
- [electron](http://electronjs.org)
|
- [electron](http://electronjs.org)
|
||||||
|
|
||||||
|
|
||||||
# Hacking on `tea/gui`
|
# Hacking on `tea/gui`
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
@ -53,7 +51,6 @@ xc dev # opens the app in dev mode
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Tasks
|
# Tasks
|
||||||
|
|
||||||
The following can be run with [`xc`], eg. `xc build`.
|
The following can be run with [`xc`], eg. `xc build`.
|
||||||
|
@ -104,6 +101,7 @@ pnpm --filter tea exec pnpm dist
|
||||||
```
|
```
|
||||||
|
|
||||||
## Check
|
## Check
|
||||||
|
|
||||||
Runs the typescript compiler and linter.
|
Runs the typescript compiler and linter.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
@ -111,8 +109,36 @@ pnpm run -r check
|
||||||
pnpm run -r lint
|
pnpm run -r lint
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Bump
|
||||||
|
|
||||||
|
Inputs: PRIORITY
|
||||||
|
|
||||||
|
```sh
|
||||||
|
if ! git diff-index --quiet HEAD --; then
|
||||||
|
echo "error: dirty working tree" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$(git rev-parse --abbrev-ref HEAD)" != "main" ]; then
|
||||||
|
echo "error: requires main branch" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
V=$(git describe --tags --abbrev=0 --match "v[0-9]*.[0-9]*.[0-9]*")
|
||||||
|
V=$(tea semverator bump $V $PRIORITY)
|
||||||
|
|
||||||
|
if ! grep -F "\"version\": \"$V\",$" modules/desktop/package.json; then
|
||||||
|
sed -i.bak -e "s/\"version\": .*,$/\"version\": \"$V\",/" modules/desktop/package.json
|
||||||
|
rm modules/desktop/package.json.bak
|
||||||
|
git add modules/desktop/package.json
|
||||||
|
git commit -m "bump $V" --gpg-sign
|
||||||
|
fi
|
||||||
|
|
||||||
|
git push origin main
|
||||||
|
tea gh release create "v$V"
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue