Skip to content

Commit 98bee83

Browse files
committed
Final cleanup changes
1 parent ca55142 commit 98bee83

File tree

4 files changed

+5
-21
lines changed

4 files changed

+5
-21
lines changed

Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ GEM
8585
colored2 (~> 3.1)
8686
nanaimo (~> 0.3.0)
8787
rexml (~> 3.2.4)
88-
zeitwerk (2.6.6)
88+
zeitwerk (2.6.7)
8989

9090
PLATFORMS
9191
ruby
@@ -97,4 +97,4 @@ RUBY VERSION
9797
ruby 2.7.6p219
9898

9999
BUNDLED WITH
100-
2.3.22
100+
2.1.4

README.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,12 @@
22

33
## Versioning
44

5-
Before publishing an Expensify Release of this fork, you must first set the correct package version. The version should mirror the upstream tag that it's based off.
6-
7-
For example:
5+
Before publishing an Expensify Release of this fork, you must first figure out the correct version. The version should mirror the upstream tag that it's based off.
86

97
- While writing this, the upstream tag I've based this version of the fork off is `0.71.2`. Since this is our first time publishing the fork under this upstream version, the correct version for the fork is `0.71.2-alpha.0` (and the corresponding git branch should be called `Expensify-0.71.2-alpha.0`)
108
- If we publish the fork again without upgrading the fork to be based off a new upstream tag (such as `0.71.3`), then the next version would be `0.71.2-alpha.1`
119
- If we publish the fork again with a new upstream tag (such as `0.71.4`), then the alpha should reset, and the correct version would then be `0.71.4-alpha.0`
1210

13-
To update the version on the fork, run the following script:
14-
15-
```bash
16-
node ./scripts/set-rn-version.js --to-version <fork-version> --build-type expensify
17-
```
18-
1911
Then commit your changes.
2012

2113
## Publishing

scripts/version-utils.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ function validateBuildType(buildType) {
7070
'release',
7171
'dry-run',
7272
'nightly',
73-
'expensify',
7473
]);
7574
if (!validBuildTypes.has(buildType)) {
7675
throw new Error(`Unsupported build type: ${buildType}`);
@@ -92,7 +91,6 @@ function validateVersion(versionObject, buildType) {
9291
release: validateRelease,
9392
'dry-run': validateDryRun,
9493
nightly: validateNightly,
95-
expensify: validateExpensify,
9694
};
9795

9896
const validationFunction = map[buildType];
@@ -131,13 +129,6 @@ function validateNightly(version) {
131129
}
132130
}
133131

134-
function validateExpensify(version) {
135-
const isValidExpensify = version.prerelease && version.prerelease.match(/alpha\.\d/);
136-
if (!isValidExpensify) {
137-
throw new Error(`Version ${version.version} is not valid for Expensify`);
138-
}
139-
}
140-
141132
function isStableRelease(version) {
142133
return (
143134
version.major === '0' && version.minor !== '0' && version.prerelease == null
@@ -152,6 +143,7 @@ function isStablePrerelease(version) {
152143
version.prerelease != null &&
153144
(version.prerelease.startsWith('rc.') ||
154145
version.prerelease.startsWith('rc-') ||
146+
version.prerelease.startsWith('alpha.') ||
155147
version.prerelease.match(/^(\d{8})-(\d{4})$/))
156148
);
157149
}

sdks/hermes-engine/hermes-engine.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ build_type = :release
1313

1414
# package.json
1515
package = JSON.parse(File.read(File.join(react_native_path, "package.json")))
16-
version = package['version']
16+
version = '0.71.2'
1717

1818
# sdks/.hermesversion
1919
hermestag_file = File.join(react_native_path, "sdks", ".hermesversion")

0 commit comments

Comments
 (0)