auto increment build number with github actions / app.config

Hi,

I’m struggling to figure out a way to autoincrement build numbers when using app.config.js
I’m using "appVersionSource": "remote", and while it retrieves the version I had set, there is no incrementation.

Any suggestions on how to achieve this?

you need to set autoIncrement option in build profiles that should trigger version increment

this is not compatible with app.config.js, only app.json, that’s the thing I’m stuck on.
Any alternate suggestions or, more details on how to make autoincrement work with app.config.js

if appVersionSource is set to remote, autoincrement works with dynamic config, please read the docs I linked

1 Like

Had read the docs but had mistakenly put "autoIncrement": true under cli.production instead of build.production for anyone with the same issue.

Thanks @wkozyra; I had read the docs multiple times, just missed that detail.

Pasting the example from the docs for ref:

{
  "cli": {
    "appVersionSource": "remote"
  },
  "build": {
    "staging": {
      "distribution": "internal",
      "android": {
        "buildType": "apk"
      }
    },
    "production": {
      "autoIncrement": true
    }
  }
}

Thanks