Open kaminskypavel opened 4 years ago
a follow up :
changing the strategy to
"versions": { "version": "${next.raw}", "android": "${increment}", <----------- "ios": "${next.raw}" }
[10:23:46 AM] [semantic-release] › ℹ Start step "prepare" of plugin "semantic-release-expo"
[10:23:46 AM] [semantic-release] [semantic-release-expo] › ℹ Expo manifest version changed (1.1.0 => 1.1.1) in app.json
[10:23:46 AM] [semantic-release] [semantic-release-expo] › ℹ Expo manifest android version changed (0 => 1) in app.json <------------
[10:23:46 AM] [semantic-release] [semantic-release-expo] › ℹ Expo manifest ios version changed (1.1.0 => 1.1.1) in app.json
I've encountered this issue on two projects (one new, one > 1 year old), confirming that @kaminskypavel's solution has resolved the issue for me.
Happening to me as well.
I believe this is occuring due to the logic of this function https://github.com/byCedric/semantic-release-expo/blob/develop/src/version.ts#L21.
Somewhat recently, the expo sdk version was removed from app.json
(upgrading sdk versions with the expo CLI removed it automatically). If this value is blank, the function will return 0
.
I just confirmed that adding back in e.g. "sdkVersion": "38.0.0",
makes this work as expected again. Since the value is now optional in app.json
, it would be best to switch to the same strategy used by expo: https://forums.expo.io/t/expo-36-upgrade-from-cli-removes-sdkversion-from-app-json-why/34634/3.
@byCedric , great work with this plugin!
.releaserc
log
as you can see while app.json version and ios version are getting the right value, android is getting version code 0