Repository navigation
Add release workflow for sample apps + Refactor repo - #4
Merged
Merged
Conversation
This was referenced Oct 13, 2026
brionmario
force-pushed
the
ci/release-workflow
branch
from
October 13, 2026 12:53
189c16e to
3ee3a8c
Compare
Add a manually triggered release workflow that publishes each sample app as a source zip on GitHub Releases, mirroring the javascript-sdks release workflow while supporting samples that aren't npm-based. - Add the release workflow with a bump type dropdown, a confirm_major guard and one checkbox per sample. - Add bump-version and pack-sample composite actions that bump package.json or pubspec.yaml versions and zip committed sample files with git archive. - Move samples from samples/<category>/<name>/ to <category>/<name>/ at the repo root and update PR builder discovery. - Add the pull request template and a README with the repo banner and the list of samples. Signed-off-by: Brion <info@brionmario.com>
brionmario
force-pushed
the
ci/release-workflow
branch
from
October 13, 2026 12:56
3ee3a8c to
e0b41fc
Compare
thiva-k
approved these changes
Oct 13, 2026
4 of 11 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Adds a manually triggered release workflow that publishes each sample app as a ready-to-run source zip on GitHub Releases. It mirrors the
javascript-sdksrelease workflow, but also works for samples that aren't npm-based, like the Flutter one.This PR also adds the repo's pull request template and a root
README.md, both followingthunder-id/javascript-sdks. It also moves the samples fromsamples/<category>/<name>/to<category>/<name>/at the repo root, since the repo already holds only samples.Approach
Release workflow (
.github/workflows/release.yml)It runs on
workflow_dispatchwith these inputs:bump_type:patch,minorormajor. Amajorbump also needsconfirm_majorticked.sample_flutter_app_authandsample_self_care_account.Each selected sample runs as its own job, and the jobs run concurrently:
[Release] <category>/<name>@<version>, pushes using the same rebase-and-retry loop asjavascript-sdks, then creates the tagsample/<category>/<name>/v<version>.thunderid-<category>-<name>-sample-v<version>.zip.To add a sample: add a
sample_<x>checkbox input, copy one of the release job blocks, and change its path, tag and title.Composite actions
.github/actions/bump-versionbumps the version for the sample's stack, replacing the npm-onlypnpm version:package.json: runsnpm version <type> --no-git-tag-version.pubspec.yaml: bumps the version number and increments the+Nbuild number, which becomes the AndroidversionCodeand the iOS build number..github/actions/pack-samplezips the sample withgit archiveat the release commit, replacingpnpm pack..env,node_modules,build/anddist/are left out.export-ignorein.gitattributes.PR template and README
.github/pull_request_template.mdis copied fromthunder-id/javascript-sdks. I left out the "Cross-SDK parity" item because this repo has no parity check.README.mdfollows thejavascript-sdksREADME: the repo banner, a table of samples with a release badge per sample, and the same contributing and license sections. Each badge shows "no matching releases found" until that sample's first release.Sample layout
Samples now sit at
<category>/<name>/at the repo root, e.g.self-care/accountandintegrations/flutter-app-auth. The extrasamples/folder repeated the repo name;javascript-sdksonly has one to keep samples apart frompackages/.pr-builder.ymlnow looks for samples at the repo root and skips hidden folders such as.github/.release.yml, both composite actions and the README use the new paths.sample/<category>/<name>/v<version>) and zip names are unchanged.Requirement: the
THUNDERID_AUTOMATION_BOTsecret must be set on this repo. The workflow uses it to push tomainand to create releases.Related Issues
thunder-id/samplesthunderid#5780Related PRs
Checklist
Ran the bump and pack scripts locally on fresh clones:
account1.0.0→1.0.1account1.0.0→1.1.0flutter-app-auth1.0.0+1→1.0.1+2flutter-app-auth1.0.0+1→2.0.0+2Each zip has a single top-level folder and includes the bumped version file. It leaves out
.env,node_modulesandbuild.An unsupported bump type fails with a clear error, and so does a folder with no version file.
Not yet done: a full run on GitHub, which needs the secret configured first.
README.mdbreaking changelabel added.Security checks