@vmvarela/semantic-release-apk
v0.1.0
Published
Trigger APK build via GitHub repository dispatch during semantic-release
Readme
@vmvarela/semantic-release-apk
Trigger an APK build via GitHub repository dispatch during semantic-release.
Install
npm install --save-dev @vmvarela/semantic-release-apkUsage
Add as a publish step — dispatches apk-publish event to the configured repo.
# .releaserc.yml
plugins:
- '@semantic-release/commit-analyzer'
- '@semantic-release/release-notes-generator'
- '@semantic-release/github'
- '@semantic-release/npm'
- '@semantic-release/git'
- '@vmvarela/semantic-release-apk'Environment variables
| Variable | Description |
|----------|-------------|
| GH_TOKEN or GITHUB_TOKEN | GitHub token with repo dispatch permission |
| APK_DISPATCH_REPO | Target repository for dispatch (e.g. vmvarela/apk-repo) |
What it does
- Verifies
GH_TOKEN/GITHUB_TOKENandAPK_DISPATCH_REPOare set - On publish, dispatches a
apk-publishrepository dispatch event with the release version and source repo - The target repo's workflow picks up the event to build and publish the APK
