class Fastlane::Actions::TagReleaseAction
Public Class Methods
available_options()
click to toggle source
# File lib/fastlane/plugin/react_native_release/actions/tag_release.rb, line 30 def self.available_options [ FastlaneCore::ConfigItem.new(key: :tag_prefix, env_name: "FL_TAG_RELEASE_TAG_PREFIX", description: "The prefix for tags (ex. ios/beta, android/beta)", type: String), FastlaneCore::ConfigItem.new(key: :next_version, env_name: "FL_TAG_RELEASE_NEXT_VERSION", description: "The next version to release", type: String), FastlaneCore::ConfigItem.new(key: :build_number, env_name: "FL_TAG_RELEASE_BUILD_NUMBER", description: "The current build number from CI", type: String) ] end
description()
click to toggle source
@!group documentation
# File lib/fastlane/plugin/react_native_release/actions/tag_release.rb, line 22 def self.description "Tags a release based on a prefix, version, and build numbers" end
details()
click to toggle source
# File lib/fastlane/plugin/react_native_release/actions/tag_release.rb, line 26 def self.details # TODO end
is_supported?(platform)
click to toggle source
# File lib/fastlane/plugin/react_native_release/actions/tag_release.rb, line 60 def self.is_supported?(platform) [:ios, :android].include?(platform) end
return_value()
click to toggle source
# File lib/fastlane/plugin/react_native_release/actions/tag_release.rb, line 47 def self.return_value # If your method provides a return value, you can describe here what it does end
run(params)
click to toggle source
# File lib/fastlane/plugin/react_native_release/actions/tag_release.rb, line 6 def self.run(params) tag_prefix = params[:tag_prefix] next_version = params[:next_version] build_number = params[:build_number] # Create tag to represent the new version # TODO handle the case of not having proper git permissions other_action.add_git_tag(tag: "#{tag_prefix}/#{next_version}/#{build_number}") other_action.push_git_tags other_action.push_to_git_remote end