Releasing¶
One run of the Release workflow publishes everything, under one version number:
| Package | Registry |
|---|---|
quran-madina-html |
npm |
@tarekeldeeb/quran-madina-react |
npm |
@tarekeldeeb/quran-madina-react-native |
npm |
quran_madina_flutter |
pub.dev |
| WordPress plugin | a zip attached to the GitHub release |
Run a release¶
- Merge everything into
main. - Open Actions → Release and choose Run workflow (this works from a phone too).
- Pick the version bump (
patch,minorormajor), and leave dry run ticked. - Check the dry run's log, then run it again with dry run off.
The release builds dist/, bumps the version (the wrappers follow), commits, tags (e.g.
2.1.1), creates the GitHub release, and publishes both npm packages. The tag then starts
Publish Flutter package, which publishes to pub.dev, and WordPress, which tests the
plugin in WordPress and attaches its zip to the release.
wrapper only republishes just the React wrapper at the current version, for when the core package published but the wrapper didn't.
Secrets¶
| Secret | Needed for | What it is |
|---|---|---|
NPM_TOKEN |
npm | A granular npm token with read and write on both packages, allowed to bypass two-factor authentication. |
RELEASE_PAT |
pub.dev | A fine-grained GitHub token for this repository with Contents read and write. Without it, the release tag doesn't start the pub.dev workflow. |
pub.dev needs no secret: the package's admin page trusts this repository's workflow for tags
matching {{version}}.
Docs and demo¶
- These docs publish from
mainon every change todocs/ormkdocs.yml(the Docs workflow), into thedocs/folder of the GitHub Pages site. - The Flutter web example publishes from
mainon every change toflutter/or the library (the Flutter web example workflow), into theflutter/folder. - The demo (
demo/) lives on the samegh-pagesbranch. When updating it by hand, keep thedocs/andflutter/folders.