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) => {
2222 core . info ( `Updated gem info: ${ new_gem_info } ` ) ;
2323 fs . writeFileSync ( gem_info_file , new_gem_info ) ;
2424
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 } ;
3026 childProcess . execSync ( 'bundle config unset deployment' , launchOption ) ;
3127 childProcess . execSync ( 'bundle install' , launchOption ) ;
32- childProcess . execSync ( 'bundle exec rake demo ' , launchOption ) ;
28+ childProcess . execSync ( 'bundle exec rake update --trace ' , launchOption ) ;
3329 childProcess . execSync ( 'bundle config deployment true' , launchOption ) ;
3430 return version ;
3531}
Original file line number Diff line number Diff line change @@ -20,6 +20,16 @@ task :demo do
2020 end
2121end
2222
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+
2333desc 'Publish to cocoapods plugins if not present'
2434task :publish do
2535 require 'rubygems'
@@ -31,7 +41,9 @@ task :publish do
3141 return if known_plugins . one? { |plugin | plugin [ 'gem' ] == gem . name }
3242
3343 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
3547 system ( 'pod plugins publish' , exception : true )
3648end
3749
You can’t perform that action at this time.
0 commit comments