Skip to content

deploypulse-codepush-release-react-native 0.0.3 #4390

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mattlisiv
Copy link

@mattlisiv mattlisiv commented Feb 19, 2025

TagCheck

What to do if the build fails?

At the moment contributors do not have access to the CI workflow triggered by StepLib PRs. In case of a failed build, we ask for your patience. Maintainers of Bitrise Steplib will sort it out for you or inform you if any further action is needed.

New Pull Request Checklist

Please mark the points which you did / accept.

New Step
Thank you for the new Step share! The CI check might will fail due to our extended validation engine. Nothing to worry about yet, we will get back to you shortly.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@bitrise-coresteps-bot
Copy link
Collaborator

Don't forget to follow semantic versioning! Breaking changes (including step inputs) should be in major versions only.

step.yml changes compared to previous version:

@lpusok lpusok self-assigned this Mar 5, 2025
Copy link
Contributor

@lpusok lpusok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution. Left a few comments for improvements.
These can be most easily fixed by making changes and sending a new steplib PR.
I can defer some changes in case there is a plan for making changes in a later version, I would recommend the ones that change Inputs as they both harder to make later and make using the step easier.

is_required: true
title: React Native Project Root
react_native_project_root: $REACT_NATIVE_PROJECT_ROOT
- app_id: $APP_ID
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please do not use environment variables as the default value.

See our docs https://devcenter.bitrise.io/en/steps-and-workflows/developing-your-own-bitrise-step/developing-a-new-step.html:
Environment Variables must not be used as default values, unless:

  • They are exposed by the Bitrise CLI or by bitrise.io.
  • They are generated as an output by another Step (for example, $BITRISE_IPA_PATH, $BITRISE_AAB_PATH).

The platform you want to release the update to. This defaults to ios, but you can specify android if you want to release to the Android platform.
is_required: true
title: Platform
platform: ios
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I beleive you can use value_options to specify list on valid inputs (ios, android).

- deployment: Staging
opts:
description: |
This specifies which deployment you want to release the update to. This defaults to Staging, but when you're ready to deploy to Production, or one of your own custom deployments, just explicitly set this argument. See [here](https://docs.microsoft.com/en-us/appcenter/distribution/codepush/cli#deployment-name-parameter) for details.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Linking to appcenter docs is still alright, but would recommend migrating away in a next Step release as it may be removed with App Center deprecation.

To sign your new update in codepush, '$SIGN_PRIVATE_KEY' must be the one who stores your private key to sign
is_required: false
title: Signed update
private_key: -k $SIGN_PRIVATE_KEY
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could make this input easier to use with Bitrise.

  • The easiest to use option would be to accept a remote URL as an input (optionally a local file path too). That way the input can be set on the UI using generic file storage as a source (And fetched using wget in the step.sh https://devcenter.bitrise.io/en/builds/managing-build-files/using-files-in-your-builds.html). Would also remove the -k flag and move it to the step.sh instead.
  • Keep the local file path requirement, but would add a description on how can use file-downloader or Script step to fetch the key file.

@@ -0,0 +1,94 @@
title: AppCenter CodePush Release React Native
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
title: AppCenter CodePush Release React Native
title: Release React Native with DeployPulse / AppCenter

Suggesting slightly more readable title.

inputs:
- opts:
description: |
Path where the React Native project is located.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add summary for all inputs. To check that they are displayed correctly you can use (bitrise :workflow-editor command locally)

@lpusok lpusok added the new-step label Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants