Skip to content

Commit

Permalink
ci: add commit-lint ci action, migrate more to blacksmith
Browse files Browse the repository at this point in the history
  • Loading branch information
cdxker committed Sep 12, 2024
1 parent 9e53e69 commit 114c590
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/commit-lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Lint commits

on:
merge_group:
types:
- checks_requested

jobs:
semantic-message:
runs-on: blacksmith-2vcpu-ubuntu-2204
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
with:
fetch-depth: 0
- name: Set up node
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: "20.9"
cache: npm
- name: Install dependencies
run: npm ci
- name: Validate PR commits with commitlint
run: |
npx commitlint --from "$(git rev-parse origin/main)" --verbose
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
runs-on: blacksmith-2vcpu-ubuntu-2204
outputs:
releases_created: ${{ steps.release-please.outputs.releases_created }}
tag_name: ${{ steps.release-please.outputs.tag_name }}
Expand All @@ -28,7 +28,7 @@ jobs:
if: ${{ needs.release-please.outputs.releases_created == 'true' }}
permissions:
contents: write
runs-on: ubuntu-latest
runs-on: blacksmith-2vcpu-ubuntu-2204
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down

0 comments on commit 114c590

Please sign in to comment.