GitHub actions for byCedric/semantic-release-expo
You can use the sample configuration below to:
- Generate release notes
- Prepare a
CHANGELOG.md
- Update the version in
package.json
andapp.json
- Publish a release to Github
Start by adding the semantic-release plugins:
yarn add @semantic-release/changelog @semantic-release/git @semantic-release/github @semantic-release/npm @semantic-release/release-notes-generator -D
Next, add the configuration to your package.json
:
"release": {
"verifyConditions": [
"semantic-release-expo",
"@semantic-release/changelog",
"@semantic-release/git",
"@semantic-release/github",
"@semantic-release/npm"
],
"generateNotes": [
"@semantic-release/release-notes-generator"
],
"prepare": [
"semantic-release-expo",
"@semantic-release/changelog",
"@semantic-release/npm",
{
"path": "@semantic-release/git",
"assets": [
"CHANGELOG.md",
"package.json",
"package-lock.json",
"app.json"
]
}
],
"publish": [
"@semantic-release/github"
],
"success": false,
"fail": false
},
Finally, in your main.workflow
, add this action:
action "semantic-release" {
uses = "mgibeau/semantic-release-expo-github-action"
secrets = ["GITHUB_TOKEN"]
}
Most semantic-release plugins support configuration through environment variables.
If you plan to use @semantic-release/git or @semantic-release/github, make sure
that you are using GITHUB_TOKEN
.
Other authentication methods can also be defined using secrets.
N/A
N/A