Skip to content

Commit

Permalink
feat: add RELEASE_IS_NEXT_VERSION_COMPATIBLE_WITH_CODEPUSH variable
Browse files Browse the repository at this point in the history
  • Loading branch information
janziemba committed Feb 14, 2021
1 parent bc5ee67 commit 7c44bc7
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ module Actions
module SharedValues
RELEASE_ANALYZED = :RELEASE_ANALYZED
RELEASE_IS_NEXT_VERSION_HIGHER = :RELEASE_IS_NEXT_VERSION_HIGHER
RELEASE_IS_NEXT_VERSION_COMPATIBLE_WITH_CODEPUSH = :RELEASE_IS_NEXT_VERSION_COMPATIBLE_WITH_CODEPUSH
RELEASE_LAST_TAG_HASH = :RELEASE_LAST_TAG_HASH
RELEASE_LAST_VERSION = :RELEASE_LAST_VERSION
RELEASE_NEXT_MAJOR_VERSION = :RELEASE_NEXT_MAJOR_VERSION
Expand Down Expand Up @@ -122,6 +123,10 @@ def self.is_releasable(params)
next_patch += 1
end

unless commit[:is_codepush_friendly]
Actions.lane_context[SharedValues::RELEASE_IS_NEXT_VERSION_COMPATIBLE_WITH_CODEPUSH] = false
end

next_version = "#{next_major}.#{next_minor}.#{next_patch}"
UI.message("#{next_version}: #{subject}") if params[:show_version_path]
end
Expand Down Expand Up @@ -303,6 +308,7 @@ def self.output
[
['RELEASE_ANALYZED', 'True if commits were analyzed.'],
['RELEASE_IS_NEXT_VERSION_HIGHER', 'True if next version is higher then last version'],
['RELEASE_IS_NEXT_VERSION_COMPATIBLE_WITH_CODEPUSH', 'True if next version is compatible with codepush'],
['RELEASE_LAST_TAG_HASH', 'Hash of commit that is tagged as a last version'],
['RELEASE_LAST_VERSION', 'Last version number - parsed from last tag.'],
['RELEASE_NEXT_MAJOR_VERSION', 'Major number of the next version'],
Expand Down

0 comments on commit 7c44bc7

Please sign in to comment.