File tree Expand file tree Collapse file tree 2 files changed +15
-7
lines changed Expand file tree Collapse file tree 2 files changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -22,14 +22,10 @@ exports.preVersionGeneration = (version) => {
22
22
core . info ( `Updated gem info: ${ new_gem_info } ` ) ;
23
23
fs . writeFileSync ( gem_info_file , new_gem_info ) ;
24
24
25
- const launchOption = {
26
- cwd : GITHUB_WORKSPACE ,
27
- env : Object . assign ( { } , process . env , { 'LANG' : 'en_US.UTF-8' } )
28
- } ;
29
-
25
+ const launchOption = { cwd : GITHUB_WORKSPACE } ;
30
26
childProcess . execSync ( 'bundle config unset deployment' , launchOption ) ;
31
27
childProcess . execSync ( 'bundle install' , launchOption ) ;
32
- childProcess . execSync ( 'bundle exec rake demo ' , launchOption ) ;
28
+ childProcess . execSync ( 'bundle exec rake update --trace ' , launchOption ) ;
33
29
childProcess . execSync ( 'bundle config deployment true' , launchOption ) ;
34
30
return version ;
35
31
}
Original file line number Diff line number Diff line change @@ -20,6 +20,16 @@ task :demo do
20
20
end
21
21
end
22
22
23
+ desc 'Update lock files'
24
+ task :update do
25
+ system ( 'bundle install' , exception : true )
26
+ Bundler . with_unbundled_env do
27
+ Dir . chdir ( 'example/ios_app' ) do |path |
28
+ system ( 'bundle install' , exception : true )
29
+ end
30
+ end
31
+ end
32
+
23
33
desc 'Publish to cocoapods plugins if not present'
24
34
task :publish do
25
35
require 'rubygems'
@@ -31,7 +41,9 @@ task :publish do
31
41
return if known_plugins . one? { |plugin | plugin [ 'gem' ] == gem . name }
32
42
33
43
require 'github_api'
34
- return if Github . search . issues ( q : "#{ gem . name } user:CocoaPods repo:CocoaPods/cocoapods-plugins in:title" ) . items . count > 0
44
+ return if Github . search . issues (
45
+ q : "#{ gem . name } user:CocoaPods repo:CocoaPods/cocoapods-plugins in:title"
46
+ ) . items . count > 0
35
47
system ( 'pod plugins publish' , exception : true )
36
48
end
37
49
You can’t perform that action at this time.
0 commit comments