mirror of
https://github.com/floci-io/floci-cli.git
synced 2026-11-24 06:20:25 -05:00
ci: release with release-please, like the Testcontainers modules (#76)
Replace the semantic-release Release Cut button with release-please.yml: a standing release PR bumps pom.xml and CHANGELOG.md; merging it tags X.Y.Z, then the workflow publishes the binaries (release.yml, now a reusable workflow), bumps the Homebrew tap and runs CodeQL and Trivy. A workflow_dispatch tag input re-publishes an existing tag. Swap conventional-commits.yml for commit-lint.yml so the PR title is linted, exempt release PRs from the changelog guard, and demote the generated changelog headings so release-please inserts above them. Tests: mvn -B test, 811 passed. Signed-off-by: Hector Ventura <hectorvent@gmail.com>
This commit is contained in:
1 parent
3c70876448
commit
ae4bf99352
16 files changed
+271
-6284
No files matched your search
@@ -0,0 +1,33 @@
|
||||
name: Commit lint
|
||||
|
||||
# Its own workflow, with no path filters, so every pull request is checked: its commits and its
|
||||
# title, which becomes the commit message when the pull request is squash-merged and so decides
|
||||
# what release-please does with it.
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened, edited, synchronize, reopened]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
commit-lint:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Check the commits
|
||||
uses: wagoid/commitlint-github-action@b948419dd99f3fd78a6548d48f94e3df7f6bf3ed # v6.2.1
|
||||
|
||||
- name: Check the pull request title
|
||||
env:
|
||||
TITLE: ${{ github.event.pull_request.title }}
|
||||
run: |
|
||||
dir="$RUNNER_TEMP/commitlint"
|
||||
mkdir -p "$dir" && cp commitlint.config.mjs "$dir/" && cd "$dir"
|
||||
npm install --no-save --no-package-lock --no-audit --no-fund \
|
||||
@commitlint/cli@19.8.1 @commitlint/config-conventional@19.8.1 >/dev/null
|
||||
printf '%s\n' "$TITLE" | npx --no-install commitlint
|
||||
Reference in new issue
Block a user