format.yml 504 B

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