fastlane-plugin-semantic_release 0.1.1 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 74e7240446d4e3e3b57e47c9f13f5c9dca2dd3e79784a534eda9768e786fd92c
|
4
|
+
data.tar.gz: 7012750d1542fe5e56a7182ac23d6c1561321ce5a4a3ef6f3b17868b048ec85f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3b9a597a9a58ddb9b8e7ba8523d68f1d650d1b628c7652bdded8015f620360ecc949b97a4f584c20ef691cd5a0e4decd8aeddbccedc6385bff62350ef23de68
|
7
|
+
data.tar.gz: 846eef67764067475d0be534d0343eddb5e310aac348aa240acace95871ec169ee021cf9ac635a5b50995b3b01e519e40568e09f9956a74f261dd9177bc09f2e
|
@@ -5,6 +5,7 @@ module Fastlane
|
|
5
5
|
module Actions
|
6
6
|
module SharedValues
|
7
7
|
RELEASE_ANALYZED = :RELEASE_ANALYZED
|
8
|
+
RELEASE_IS_NEXT_VERSION_HIGHER = :RELEASE_IS_NEXT_VERSION_HIGHER
|
8
9
|
RELEASE_LAST_TAG_HASH = :RELEASE_LAST_TAG_HASH
|
9
10
|
RELEASE_LAST_VERSION = :RELEASE_LAST_VERSION
|
10
11
|
RELEASE_NEXT_MAJOR_VERSION = :RELEASE_NEXT_MAJOR_VERSION
|
@@ -86,6 +87,7 @@ module Fastlane
|
|
86
87
|
isReleaseable = Helper::SemanticReleaseHelper.semver_gt(nextVersion, version)
|
87
88
|
|
88
89
|
Actions.lane_context[SharedValues::RELEASE_ANALYZED] = true
|
90
|
+
Actions.lane_context[SharedValues::RELEASE_IS_NEXT_VERSION_HIGHER] = isReleaseable
|
89
91
|
# Last release analysis
|
90
92
|
Actions.lane_context[SharedValues::RELEASE_LAST_TAG_HASH] = hash
|
91
93
|
Actions.lane_context[SharedValues::RELEASE_LAST_VERSION] = version
|
@@ -95,13 +97,10 @@ module Fastlane
|
|
95
97
|
Actions.lane_context[SharedValues::RELEASE_NEXT_PATCH_VERSION] = nextPatch
|
96
98
|
Actions.lane_context[SharedValues::RELEASE_NEXT_VERSION] = nextVersion
|
97
99
|
|
98
|
-
|
99
|
-
|
100
|
-
else
|
101
|
-
UI.test_failure!('There are no commit that would change next version since last release')
|
102
|
-
end
|
100
|
+
successMessage = "Next version (#{nextVersion}) is higher than last version (#{version}). This version should be released."
|
101
|
+
UI.success(successMessage) if isReleaseable
|
103
102
|
|
104
|
-
|
103
|
+
isReleaseable
|
105
104
|
end
|
106
105
|
|
107
106
|
#####################################################
|
@@ -147,6 +146,7 @@ module Fastlane
|
|
147
146
|
# Example
|
148
147
|
[
|
149
148
|
['RELEASE_ANALYZED', 'True if commits were analyzed.'],
|
149
|
+
['RELEASE_IS_NEXT_VERSION_HIGHER', 'True if next version is higher then last version'],
|
150
150
|
['RELEASE_LAST_TAG_HASH', 'Hash of commit that is tagged as a last version'],
|
151
151
|
['RELEASE_LAST_VERSION', 'Last version number - parsed from last tag.'],
|
152
152
|
['RELEASE_NEXT_MAJOR_VERSION', 'Major number of the next version'],
|
@@ -158,7 +158,7 @@ module Fastlane
|
|
158
158
|
|
159
159
|
def self.return_value
|
160
160
|
# If your method provides a return value, you can describe here what it does
|
161
|
-
"Returns next version
|
161
|
+
"Returns true if the next version is higher then the last version"
|
162
162
|
end
|
163
163
|
|
164
164
|
def self.authors
|
@@ -4,7 +4,6 @@ require_relative '../helper/semantic_release_helper'
|
|
4
4
|
module Fastlane
|
5
5
|
module Actions
|
6
6
|
module SharedValues
|
7
|
-
CONVENTIONAL_CHANGELOG = :CONVENTIONAL_CHANGELOG
|
8
7
|
end
|
9
8
|
|
10
9
|
class ConventionalChangelogAction < Action
|
@@ -35,8 +34,6 @@ module Fastlane
|
|
35
34
|
result = slack(parsed, version, commitUrl, params)
|
36
35
|
end
|
37
36
|
|
38
|
-
Actions.lane_context[SharedValues::CONVENTIONAL_CHANGELOG] = result
|
39
|
-
|
40
37
|
result
|
41
38
|
end
|
42
39
|
|
@@ -216,9 +213,7 @@ module Fastlane
|
|
216
213
|
def self.output
|
217
214
|
# Define the shared values you are going to provide
|
218
215
|
# Example
|
219
|
-
[
|
220
|
-
['CONVENTIONAL_CHANGELOG', 'Generated conventional changelog']
|
221
|
-
]
|
216
|
+
[ ]
|
222
217
|
end
|
223
218
|
|
224
219
|
def self.return_value
|