-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
33 lines (25 loc) · 948 Bytes
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
doit:
pnpm run generate && \
pnpm run test && \
pnpm run build # dist files interfere with jest
bump-version level:
#!/bin/bash
set -x
this_version=$(cat package.json | jq -r .version)
next_version=$(./node_modules/.bin/semver -i {{level}} ${this_version})
jq ".version = \"${next_version}\"" package.json > package.temp.json
mv package.temp.json package.json
git add package.json
git commit -m "version ${next_version}"
git tag $(cat package.json | jq -r .version)
git push --atomic origin main $(cat package.json | jq -r .version)
create-release:
#!/bin/bash
zip -r dist.zip package.json tsconfig.json README.md LICENSE dist lib
version=$(cat package.json | jq -r .version)
gh release create "${version}" dist.zip \
--verify-tag \
--title "${version}" \
--repo manualpilot/docker-client-ts
reverse-proxy:
caddy reverse-proxy --from http://localhost:8888 --to unix//var/run/docker.sock