From e6fbd0f608f22e0316e2d950b64bd90fe858967d Mon Sep 17 00:00:00 2001 From: Den <2119348+dzianisv@users.noreply.github.com> Date: Sun, 21 Jun 2026 22:54:14 -0700 Subject: [PATCH] ci(play): offset versionCode by +100 to skip collision at 31 (#34) Run 31 collided with a prior manual upload at versionCode 31. Add a +100 offset so the next workflow run uploads at versionCode 132 and all subsequent runs continue monotonically past historical conflicts. Refs #32 --- .github/workflows/publish-play-store.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-play-store.yml b/.github/workflows/publish-play-store.yml index 518f584..8b03528 100644 --- a/.github/workflows/publish-play-store.yml +++ b/.github/workflows/publish-play-store.yml @@ -77,9 +77,11 @@ jobs: - name: Bump android.versionCode in app.json # Play Store rejects duplicate versionCodes, so derive a monotonic value - # from github.run_number. expo prebuild reads this into build.gradle. + # from github.run_number + offset. expo prebuild reads this into build.gradle. + # Offset 100 skips past historical collisions (run 31 collided with a + # manual upload at versionCode 31). Next run = run_number + 100. run: | - node -e "const f='app.json';const j=require('./'+f);j.expo.android=j.expo.android||{};j.expo.android.versionCode=${{ github.run_number }};require('fs').writeFileSync(f,JSON.stringify(j,null,2)+'\n')" + node -e "const f='app.json';const j=require('./'+f);j.expo.android=j.expo.android||{};j.expo.android.versionCode=${{ github.run_number }}+100;require('fs').writeFileSync(f,JSON.stringify(j,null,2)+'\n')" echo "versionCode now: $(node -p "require('./app.json').expo.android.versionCode")" - name: Purge stale generated sources