Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.
This repository was archived by the owner on May 20, 2025. It is now read-only.

Get Codepush version so we can tag in Git. #630

Closed

Description

Hi

I'd like to be able to get the codepush label for a given app so after deployments we can tag it in GIT.

appcenter codepush deployment list --app | ag -Q "Label: v"

results in: │ Production │ Label: v39 │ No installs recorded │ I can now go ahead and strip the rest and get v39 so i can git tag the changeset.

Is there an undocumented feature or set of tools we can use to manage codepush?

Also are there any tools you know of that can identify native code changes between previous revisions to prevent broken codepushes?

Activity

  1. alexandergoncharov-zz commented on May 29, 2019

    @alexandergoncharov-zz
    Contributor

    HI Mike James (@export-mike),
    Thanks for reporting and sorry for the delay.

    set of tools we can use to manage codepush?

    What kind of managing do you mean?

    Yeah, CodePush has logic for preventing releases with the same code base. If it is issue for you you can use --disable-duplicate-release-error argument. When this flag is set, releasing a package that is identical to the release will produce a warning instead of an error.

    Please let me know if it was helpful.

    Thanks,
    Alexander

  2. export-mike commented on Jun 5, 2019

    @export-mike
    Author

    Hi Alexander Goncharov (@alexandergoncharov) its more around knowing if theres been JS related changes only. as a native code change can cause incompatibility. and we need to then deploy a new binary to the stores.

    I've added a manual step on our CI (circle CI) which allows us to have control on what type of deployment we'll do with a changeset.

    And to keep track in git of deployments, I've had to do write some bash to pull out the version of the latest codepush so we can git-tag. ag -o 'v\d\d'

                 yarn appcenter login --token ${APPCENTER_APIKEY} --disable-telemetry
                 if [ "${CIRCLE_BRANCH}" == "develop" ]; then
                  yarn codepush:dev:android
                  yarn codepush:dev:ios
                  CPANDROIDVERSION=$(yarn codepush:dev:android:version | ag -o 'v\d\d')
                  CPIOSVERSION=$(yarn codepush:dev:ios:version | ag -o 'v\d\d')
                  git tag "codepush-android-dev-${CPANDROIDVERSION}"
                  git tag "codepush-ios-dev-${CPIOSVERSION}"
                  git push --tags
                 fi
    {"codepush:dev:android:version": "appcenter codepush deployment list --app <appName> --disable-telemetry",
        "codepush:dev:ios:version": "appcenter codepush deployment list --app <appName> --disable-telemetry"}
  3. export-mike commented on Jun 6, 2019

    @export-mike
    Author

    feels to me there should be a simple command to get the latest app version on codepush

  4. alexandergoncharov-zz commented on Jun 6, 2019

    @alexandergoncharov-zz
    Contributor

    Mike James (@export-mike), That's great that you implemented this logic!

    Unfortunately no, there's no command to get the latest app version yet. You have to get this info from appcenter codepush deployment list. Sorry for this. Possible you can use --output json field to get this info in Json as it's easier to parse.

  5. alexandergoncharov-zz commented on Jun 6, 2019

    @alexandergoncharov-zz
    Contributor

    Mike James (@export-mike) please let me know if it was helpful or you have any questions.

  6. export-mike commented on Jun 7, 2019

    @export-mike
    Author

    --output json :O ok that i can live with.

  7. rdewolff commented on Nov 20, 2019

    @rdewolff

    I have a similar issue and have created another issue : #678

  8. ghost locked as resolved and limited conversation to collaborators on Dec 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions