I need to build different builds for different branches in the codeship. For example, if the master branch then do npm run build-master, if develop then npm run build-dev. Is it possible to do this in codeship?

    2 answers 2

    The CI_BRANCH environment CI_BRANCH is not it?

    PS if it does not help, then the current branch can always be read in the .git/HEAD file

      I have no idea what codeship is, but if the npm run ... command is in a versioned file, then you can change this file in the develop branch.

      • Not the best solution - after all, after a merger into master, this change also goes into master - Pavel Mayorov