mirror of
https://github.com/egoist/tsup.git
synced 2025-12-08 20:35:58 +00:00
38 lines
812 B
YAML
38 lines
812 B
YAML
name: Fix
|
|
|
|
on:
|
|
push:
|
|
branches-ignore:
|
|
- main
|
|
- dev
|
|
|
|
jobs:
|
|
format:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: pnpm/action-setup@v2
|
|
name: Install pnpm
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: lts/*
|
|
cache: pnpm
|
|
|
|
- run: pnpm i
|
|
|
|
- name: Format
|
|
run: pnpm run format
|
|
|
|
- name: Commit files and push
|
|
continue-on-error: true
|
|
if: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/dev' }}
|
|
run: |
|
|
git config --local user.email "github-actions[bot]@users.noreply.github.com"
|
|
git config --local user.name "github-actions[bot]"
|
|
git add --all
|
|
git commit -m "chore(ci): [bot] format code"
|
|
git push
|