Skip to content

Commit 7c0e7ac

Browse files
committed
chore(release): update local workflow
Signed-off-by: Lexus Drumgold <[email protected]>
1 parent 02c7dc1 commit 7c0e7ac

File tree

2 files changed

+8
-31
lines changed

2 files changed

+8
-31
lines changed

scripts/release.sh

+8-19
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,27 @@
11
#!/bin/sh
22

3+
set -e
4+
35
# Local Release Workflow
46
#
57
# 1. run typecheck
68
# 2. run tests
79
# 3. pack project
810
# 4. run postbuild typecheck
911
# 5. analyze types
10-
# 6. print package size report
11-
# 7. get new package version
12-
# 8. get release branch name
13-
# 9. switch to release branch
14-
# 10. stage changes
15-
# 11. commit changes
16-
# 12. push release branch to origin
17-
# 13. create pull request
18-
# 14. cleanup
12+
# 6. create release chore commit
13+
# 7. cleanup
1914
#
2015
# References:
2116
#
22-
# - https://cli.github.com/manual/gh_pr_create
23-
# - https://github.com/arethetypeswrong/arethetypeswrong.github.io
17+
# - https://git-scm.com/docs/git-commit
18+
# - https://github.com/flex-development/grease
19+
# - https://jqlang.github.io
2420

2521
yarn typecheck
2622
yarn test:cov
2723
yarn pack
2824
yarn check:types:build
2925
attw package.tgz
30-
yarn pkg-size
31-
VERSION=$(jq .version package.json -r)
32-
RELEASE_BRANCH=release/$VERSION
33-
git switch -c $RELEASE_BRANCH
34-
git add .
35-
git commit -s -m "release: $(jq .tagPrefix package.json -r)$VERSION"
36-
git push origin -u --no-verify $RELEASE_BRANCH
37-
gh pr create --assignee @me --label scope:release --web
26+
git commit --allow-empty -S -s -m "release(chore): $(jq .version -r <<<$(grease bump -j $@))"
3827
yarn clean:pack

scripts/typecheck-build.sh

-12
This file was deleted.

0 commit comments

Comments
 (0)