Skip to content

Commit f184512

Browse files
authored
force nightlies to be -pre
1 parent 8f626ad commit f184512

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

fastlane/lib/versions.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@ def propagate_version(**args)
4646

4747
UI.message "Propagating version: #{version}"
4848
UI.message 'into the Info.plist and build.gradle files'
49+
50+
version = "#{version.split('-')[0]}-pre" if should_nightly?
51+
UI.message "Actually putting #{version} into the binaries (because we're doing a nightly)"
4952

5053
# encode build number into js-land – we've already fetched it, so we'll
5154
# never set the "+" into the binaries
5255
unless version.include? '+'
5356
set_package_data(data: { version: "#{version}+#{build}" })
5457
end
55-
56-
version = '1.0.0' if should_nightly?
57-
UI.message "Actually putting #{version} into the binaries (because we're doing a nightly)"
5858

5959
case lane_context[:PLATFORM_NAME]
6060
when :android

0 commit comments

Comments
 (0)