File tree Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ prompt () {
3
+ echo " $1 "
4
+ read -p " Would you like to release? [Y/n]: " PROMPT_RESULT
5
+ }
6
+
7
+ yarn version --minor
8
+ # Read 'version' key from package.json
9
+ version=$( jq -r ' .version' ./package.json)
10
+ echo " Releasing $version "
11
+
12
+ # Add a git tag based on the 'version'
13
+ # git tag -a "$version" -m "Release $version"
14
+ git commit -am " chore: 🤖 release $version "
15
+ git push origin main
16
+ echo " Pushed $version to github.com"
17
+
18
+ prompt " Release to production for iOS and Android"
19
+ if [[ $PROMPT_RESULT == " Y" ]]; then
20
+ # Release to production
21
+ # eas build --auto-submit --platform=ios --non-interactive
22
+ eas build --auto-submit --platform=android --non-interactive
23
+ fi
Original file line number Diff line number Diff line change 1
1
{
2
+ "name" : " spacecraft" ,
3
+ "version" : " 2.0.0" ,
2
4
"license" : " MIT" ,
3
5
"main" : " node_modules/expo/AppEntry.js" ,
4
6
"scripts" : {
16
18
"storybook" : " sb-rn-get-stories && STORYBOOK_ENABLED='true' expo start" ,
17
19
"storybook:ios" : " sb-rn-get-stories && STORYBOOK_ENABLED='true' expo start --ios" ,
18
20
"storybook:android" : " sb-rn-get-stories && STORYBOOK_ENABLED='true' expo start --android" ,
19
- "e2e" : " maestro test e2e/process.yaml"
21
+ "e2e" : " maestro test e2e/process.yaml" ,
22
+ "release" : " ./bin/release.sh"
20
23
},
21
24
"jest" : {
22
25
"preset" : " jest-expo" ,
You can’t perform that action at this time.
0 commit comments