File tree 2 files changed +8
-31
lines changed
2 files changed +8
-31
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
+ set -e
4
+
3
5
# Local Release Workflow
4
6
#
5
7
# 1. run typecheck
6
8
# 2. run tests
7
9
# 3. pack project
8
10
# 4. run postbuild typecheck
9
11
# 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
19
14
#
20
15
# References:
21
16
#
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
24
20
25
21
yarn typecheck
26
22
yarn test:cov
27
23
yarn pack
28
24
yarn check:types:build
29
25
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 $@ ) )"
38
27
yarn clean:pack
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments