format.yml 584 B

1234567891011121314151617181920212223242526272829303132
  1. name: format
  2. on:
  3. push:
  4. branches-ignore:
  5. - production
  6. pull_request:
  7. branches-ignore:
  8. - production
  9. workflow_dispatch:
  10. jobs:
  11. format:
  12. runs-on: ubuntu-latest
  13. permissions:
  14. contents: write
  15. steps:
  16. - name: Checkout repository
  17. uses: actions/checkout@v4
  18. with:
  19. token: ${{ secrets.GITHUB_TOKEN }}
  20. - name: Setup Bun
  21. uses: oven-sh/setup-bun@v1
  22. with:
  23. bun-version: 1.2.21
  24. - name: run
  25. run: |
  26. bun install
  27. ./script/format.ts
  28. env:
  29. CI: true