mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-02-23 02:30:26 +08:00
35 lines
656 B
YAML
35 lines
656 B
YAML
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
|
|
npm run build
|
|
|
|
- name: 💾 Commit
|
|
uses: autofix-ci/action@d3e591514b99d0fca6779455ff8338516663f7cc
|