Skip to content

Commit 64f74f3

Browse files
committed
add cleanup to the release script
1 parent d5469c5 commit 64f74f3

File tree

7 files changed

+7
-20550
lines changed

7 files changed

+7
-20550
lines changed

Samples/ContextAPIMixpanel/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ local.properties
3434
node_modules/
3535
npm-debug.log
3636
yarn-error.log
37+
yarn.lock
3738

3839
# BUCK
3940
buck-out/

Samples/ContextAPIMixpanel/yarn.lock

Lines changed: 0 additions & 6770 deletions
This file was deleted.

Samples/MixpanelDemo/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ local.properties
3434
node_modules/
3535
npm-debug.log
3636
yarn-error.log
37+
yarn.lock
3738

3839
# BUCK
3940
buck-out/

Samples/MixpanelDemo/yarn.lock

Lines changed: 0 additions & 6945 deletions
This file was deleted.

Samples/SimpleMixpanel/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ local.properties
3434
node_modules/
3535
npm-debug.log
3636
yarn-error.log
37+
yarn.lock
3738

3839
# BUCK
3940
buck-out/

Samples/SimpleMixpanel/yarn.lock

Lines changed: 0 additions & 6829 deletions
This file was deleted.

release.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,12 @@
1111
def bump_version():
1212
replace_version('package.json', "\"version\": \"" + args.old + "\"", "\"version\": \"" + args.new + "\"")
1313
replace_version('__tests__/index.test.js', "\"$lib_version\": \"" + args.old + "\"", "\"$lib_version\": \"" + args.new + "\"")
14-
subprocess.call('cd Samples/MixpanelDemo;yarn upgrade mixpanel-react-native --latest', shell=True)
15-
subprocess.call('cd Samples/SimpleMixpanel;yarn upgrade mixpanel-react-native --latest', shell=True)
16-
subprocess.call('cd Samples/ContextAPIMixpanel;yarn upgrade mixpanel-react-native --latest', shell=True)
14+
subprocess.call('cd Samples/MixpanelDemo;rm -fr node_modules;rm -fr android/app/build', shell=True)
15+
subprocess.call('cd Samples/SimpleMixpanel;rm -fr node_modules;rm -fr android/app/build', shell=True)
16+
subprocess.call('cd Samples/ContextAPIMixpanel;rm -fr node_modules;rm -fr android/app/build', shell=True)
1717
subprocess.call('git add package.json', shell=True)
1818
subprocess.call('git add __tests__/index.test.js', shell=True)
19-
subprocess.call('git add Samples/MixpanelDemo/yarn.lock', shell=True)
20-
subprocess.call('git add Samples/SimpleMixpanel/yarn.lock', shell=True)
21-
subprocess.call('git add Samples/ContextAPIMixpanel/yarn.lock', shell=True)
19+
2220
subprocess.call('git commit -m "Version {}"'.format(args.new), shell=True)
2321
subprocess.call('git push', shell=True)
2422

0 commit comments

Comments
 (0)