mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-07-21 22:18:25 +02:00
use autofix.ci
This commit is contained in:
parent
a00108bc0a
commit
5779b58502
2 changed files with 38 additions and 7 deletions
32
.github/workflows/format.yml
vendored
Normal file
32
.github/workflows/format.yml
vendored
Normal file
|
@ -0,0 +1,32 @@
|
|||
name: autofix.ci # Must be named this for autofix.ci to work
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
format:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: 📥 Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: 🛠️ Setup Node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20.x
|
||||
|
||||
- name: 📦 Install Dependencies
|
||||
run: npm install
|
||||
|
||||
- name: 🧹 Format
|
||||
run: npm run format
|
||||
|
||||
- name: 💾 Commit
|
||||
uses: autofix-ci/action@551dded8c6cc8a1054039c8bc0b8b48c51dfc6ef
|
Loading…
Add table
Add a link
Reference in a new issue