Improve version bump script
This commit is contained in:
parent
22317bea37
commit
013daf34af
2 changed files with 38 additions and 16 deletions
27
README.md
27
README.md
|
|
@ -22,19 +22,21 @@
|
||||||
- `cargo install cargo-insta sqlx-cli cargo-edit`
|
- `cargo install cargo-insta sqlx-cli cargo-edit`
|
||||||
|
|
||||||
|
|
||||||
## cut new version
|
## Publish new version
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
cd plugin
|
./bump-version.sh patch
|
||||||
npm version patch
|
|
||||||
git tag -a 0.0.2 -m "0.0.2"
|
|
||||||
git push origin 0.0.2
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
## Update HTTP API TS bindings
|
||||||
|
|
||||||
|
```sh
|
||||||
npm install -g openapi-typescript
|
npm install -g openapi-typescript
|
||||||
openapi-typescript http://localhost:3030/api.json --output plugin/src/services/types.ts
|
openapi-typescript http://localhost:3030/api.json --output plugin/src/services/types.ts
|
||||||
|
```
|
||||||
|
|
||||||
|
```
|
||||||
## Todos
|
## Todos
|
||||||
|
|
||||||
- Add users to vaults
|
- Add users to vaults
|
||||||
|
|
@ -43,14 +45,14 @@ openapi-typescript http://localhost:3030/api.json --output plugin/src/services/t
|
||||||
- e2e tests
|
- e2e tests
|
||||||
- add clap
|
- add clap
|
||||||
- add auth middleware
|
- add auth middleware
|
||||||
- run eslint in ci
|
- shard db per user
|
||||||
|
- update card title max width
|
||||||
|
- retry
|
||||||
- CI for:
|
- CI for:
|
||||||
- publish reconcile
|
- publish reconcile
|
||||||
- cross-platform build server
|
- cross-platform build server
|
||||||
- run load test on server
|
- run load test on server
|
||||||
- build and publish plugin with openapi types
|
- build and publish plugin with openapi types
|
||||||
- build docker image
|
|
||||||
|
|
||||||
todo: enable
|
todo: enable
|
||||||
[workspace.lints.clippy]
|
[workspace.lints.clippy]
|
||||||
|
|
@ -66,9 +68,4 @@ implicit_return = { level = "allow", priority = 1 }
|
||||||
pedantic = { level = "warn", priority = 0 }
|
pedantic = { level = "warn", priority = 0 }
|
||||||
cargo = { level = "warn", priority = 0 }
|
cargo = { level = "warn", priority = 0 }
|
||||||
|
|
||||||
|
```
|
||||||
update card title max width
|
|
||||||
reset should reset counters
|
|
||||||
access logs
|
|
||||||
retry
|
|
||||||
mem usage
|
|
||||||
|
|
|
||||||
27
bump-version.sh
Normal file → Executable file
27
bump-version.sh
Normal file → Executable file
|
|
@ -1,11 +1,36 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
if [[ -z $1 ]]; then
|
||||||
|
echo "Usage: $0 {patch|minor|major}"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ $1 =~ ^(patch|minor|major)$ ]]; then
|
||||||
|
echo "Creating a new '$1' version"
|
||||||
|
else
|
||||||
|
echo "Invalid argument: $1"
|
||||||
|
echo "Usage: $0 {patch|minor|major}"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -n $(git status --porcelain) ]]; then
|
||||||
|
echo "Your working directory is not clean. Please commit or stash your changes before proceeding."
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo "Your working directory is clean."
|
||||||
|
fi
|
||||||
|
|
||||||
cd backend
|
cd backend
|
||||||
cargo set-version --bump patch
|
cargo set-version --bump patch
|
||||||
cd ../plugin
|
cd ../plugin
|
||||||
npm version patch
|
npm version patch
|
||||||
|
cd ..
|
||||||
git add .
|
git add .
|
||||||
git commit -m "Bump versions"
|
|
||||||
TAG=$(node -p "require('./package.json').version")
|
TAG=$(node -p "require('./package.json').version")
|
||||||
|
git commit -m "Bump versions to $TAG"
|
||||||
|
echo "Tagging $TAG"
|
||||||
git tag -a $TAG -m "Release $TAG"
|
git tag -a $TAG -m "Release $TAG"
|
||||||
git push origin $TAG
|
git push origin $TAG
|
||||||
|
echo "Done"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue