1.0.0-alpha.1 • Published 5 years ago
@semantic-release-expo/publish v1.0.0-alpha.1
@semantic-release-expo/publish
semantic-release plugin to publish an Expo app.
| Step | Description | 
|---|---|
| verifyConditions | Verify the presence of the required fields in app.json. | 
| prepare | Run expo-optimizeand update theapp.json'sversion,ios.buildNumber, andandroid.versionCodefields. | 
| publish | Publish the app to Expo. | 
Install
$ npm install @semantic-release-expo/publish -DUsage
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
| Variable | Description | 
|---|---|
| EXPO_TOKEN | Expo Access Token created via the Access Tokens page of the Expo developer console | 
Options
| Options | Description | Default | 
|---|---|---|
| initialBuildNumber | The initial value to use for ios.buildNumber. | 0 | 
| initialVersionCode | The 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
      }
    ]
  ]
}1.0.0-alpha.5
5 years ago
1.0.0-alpha.4
5 years ago
1.0.0-alpha.3
5 years ago
1.0.0-alpha.2
5 years ago
1.0.0-alpha.1
5 years ago