Skip to content

Commit

Permalink
ci: add autofix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm committed Dec 3, 2024
1 parent fc21c70 commit 59ae8ba
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 15 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: autofix.ci # needed to securely identify the workflow

on:
pull_request:
push:
branches: [main]

concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
autofix:
name: autofix
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install dependencies
uses: wevm/actions/.github/actions/pnpm@main

- name: Check code
run: pnpm check

- name: Update package versions
run: pnpm version:update

- name: Apply fixes
uses: autofix-ci/action@ff86a557419858bb967097bfc916833f5647fa8c
with:
commit-message: 'ci: apply automated fixes'
14 changes: 0 additions & 14 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,6 @@ jobs:
- name: Check repo
run: pnpm check:repo

- name: Check code
run: pnpm check

- name: Update package versions
run: pnpm version:update

- uses: stefanzweifel/git-auto-commit-action@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
commit_message: 'chore: format'
commit_user_name: 'github-actions[bot]'
commit_user_email: 'github-actions[bot]@users.noreply.github.com'

build:
name: Build
needs: check
Expand Down
2 changes: 1 addition & 1 deletion packages/abitype/jsr.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"publish": {
"include": [
"LICENSE",
"../../LICENSE",
"README.md",
"CHANGELOG.md",
"src/**/*.ts"
Expand Down

0 comments on commit 59ae8ba

Please sign in to comment.