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 e5cdc14
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 22 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'
2 changes: 1 addition & 1 deletion .github/workflows/changesets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@ jobs:
uses: wevm/actions/.github/actions/pnpm@main

- name: Publish to JSR
run: pnpm version:update && cd packages/abitype && pnpx jsr publish --allow-slow-types --allow-dirty
run: pnpm version:update && cd packages/abitype && cp ../../LICENSE LICENSE && pnpx jsr publish --allow-slow-types --allow-dirty
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
10 changes: 3 additions & 7 deletions packages/abitype/jsr.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,19 @@
{
"name": "@wevm/abitype",
"version": "1.0.6",
"license": "MIT",
"exports": {
".": "./src/exports/index.ts",
"./abis": "./src/exports/abis.ts",
"./zod": "./src/exports/zod.ts"
},
"publish": {
"include": [
"LICENSE",
"README.md",
"CHANGELOG.md",
"src/**/*.ts"
],
"include": ["LICENSE", "README.md", "CHANGELOG.md", "src/**/*.ts"],
"exclude": [
"src/**/*.bench.ts",
"src/**/*.bench-d.ts",
"src/**/*.test.ts",
"src/**/*.test-d.ts"
]
}
}
}

0 comments on commit e5cdc14

Please sign in to comment.