1.0.0-alpha.1 • Published 3 years ago

@semantic-release-expo/publish v1.0.0-alpha.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@semantic-release-expo/publish

semantic-release plugin to publish an Expo app.

npm latest version npm next version npm beta version

StepDescription
verifyConditionsVerify the presence of the required fields in app.json.
prepareRun expo-optimize and update the app.json's version, ios.buildNumber, and android.versionCode fields.
publishPublish the app to Expo.

Install

$ npm install @semantic-release-expo/publish -D

Usage

The plugin can be configured in the semantic-release configuration file:

{
  "plugins": [
    "@semantic-release/commit-analyzer",
    "@semantic-release/release-notes-generator",
    "@semantic-release-expo/publish"
  ]
}

Configuration

Expo CLI authentication

The plugin uses the expo CLI. The Expo CLI authentication configuration is required and can be set via environment variables.

Environment variables

VariableDescription
EXPO_TOKENExpo Access Token created via the Access Tokens page of the Expo developer console

Options

OptionsDescriptionDefault
initialBuildNumberThe initial value to use for ios.buildNumber.0
initialVersionCodeThe initial value to use for android.versionCode.0

Note: The cwd directory must contain an app.json. The version will be updated only in the app.json within the cwd directory.

Examples

{
  "plugins": [
    "@semantic-release/commit-analyzer",
    "@semantic-release/release-notes-generator",
    [
      "@semantic-release-expo/publish",
      {
        "initialBuildNumber": 1,
        "initialVersionCode": 20103
      }
    ]
  ]
}