feat(workflows): add release-please + commitlint reusable workflows (WG-86)#38
Merged
Merged
Conversation
… (WG-86) - release_please.yaml: wraps googleapis/release-please-action@v4 with a GitHub App installation token so tags it creates trigger downstream workflows. Exposes release_created / tag_name / sha / version outputs so callers can chain their own docker build, release publish, etc. - lint_commits.yaml: wraps wagoid/commitlint-github-action@v6 for Conventional Commit enforcement on PRs. Caller repos ship a commitlint.config.mjs at the root. Validated inline in whengas/whengas-ui; see PR #42 and release cycle around v0.3.10. This commit extracts the pattern for reuse across the other whengas + jr200-labs repos.
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.
Summary
Extracts two reusable workflows from the inline whengas-ui bootstrap (validated in whengas/whengas-ui#42, release cycle around v0.3.10):
Linear: https://linear.app/whengas/issue/WG-86
How callers use these
Release-please caller (per repo):
```yaml
name: release-please
on:
push:
branches: [master]
jobs:
release:
uses: jr200-labs/github-action-templates/.github/workflows/release_please.yaml@master
with:
release-type: node # or python / go / simple
secrets:
app_private_key: ${{ secrets.INTEGRATION_APP_PRIVATE_KEY }}
dispatch-docker-build:
needs: release
if: needs.release.outputs.release_created == 'true'
runs-on: ubuntu-latest
steps:
- ... # repo-specific dispatch
```
Caller repo must contain:
Commitlint caller (usually added to existing ci.yaml):
```yaml
jobs:
commitlint:
uses: jr200-labs/github-action-templates/.github/workflows/lint_commits.yaml@master
```
Caller repo must contain:
Test plan