manuelkch / fastlane-plugin-code_push

CodePush Integration into Fastlane for react-native Apps
MIT License
51 stars 17 forks source link

Doesn't working #2

Closed KevinGong2013 closed 7 years ago

KevinGong2013 commented 7 years ago

fastfile

    code_push_release_react(
                           app_name: "testapp",
                           deployment: "Production",
                           description: options[:desc],
                           target_binary_version: "~1.0.0",
                           )

output

[18:29:32]: $ code-push release-react testapp android -d Production --des "test" -m -t ~1.0.0 
[18:29:36]: ▸ [Error]  Unable to find or read "package.json" in the CWD. The "release-react" command must be executed in a React Native project folder.
manuelkch commented 7 years ago

@KevinGong2013 could you provide me with your relevant folder structure for debugging reason ? I`ve something like

KevinGong2013 commented 7 years ago

@manuelkch sure

execute bundle exec fastlane android release version:x.y.z in ./android folder.

manuelkch commented 7 years ago

@KevinGong2013 thanks. The problem "is" that the code-push release-react command needs the package.json in the same folder where the execution tooks place. I added an extra parameter to the action comand to be able to configure the execution dir of the command by yourself.

So in your case it should be something like this code_push_release_react( execution_dir_path: "../", app_name: "YOURAPPNAME", .... ) See documentation https://github.com/manuelkch/fastlane-plugin-code_push#release-react-action

Update the plugin to v 0.2.0

KevinGong2013 commented 7 years ago

thx.