1.0.0 • Published 6 months ago

@gtomato-web/release-it-expo-build-bumper-plugin v1.0.0

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
6 months ago

release-it-expo-build-bumper-plugin

Bump Expo build number in app.json (or more files)

Usage

Specify the plugin name @gtomato-web/release-it-expo-build-bumper-plugin in plugins of your .release-it.json

{
  "plugins": {
    "@gtomato-web/release-it-expo-build-bumper-plugin": {}
  }
}

Options

{
  files: {
    file: string;
    paths: string[];
  }[];
}

Default

{
  "file": "app.json",
  "paths": ["expo.android.versionCode", "expo.ios.buildNumber"]
}

Example

{
  "plugins": {
    "@gtomato-web/release-it-expo-build-bumper-plugin": {
      "files": [
        { "file": "app.json", "paths": ["expo.ios.buildNumber"] },
        { "file": "app.json.example", "paths": ["expo.ios.buildNumber"] }
      ]
    }
  }
}

Context

This plugin will expose the new build numbers in the variables named in last part of files.paths.

For example,

  • expo.ios.buildNumber${buildNumber}
  • expo.android.versionCode${versionCode}
{
  "git": {
    "tagName": "${version}-build.${buildNumber}"
  }
}

Limitations

  • Only support JSON files

License

MIT License

1.0.0

6 months ago