build.yml 987 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # name: Dependabot post-update
  2. name: Build detection
  3. on:
  4. pull_request_target:
  5. types: [opened, synchronize, reopened]
  6. branches:
  7. - main
  8. env:
  9. HUSKY: "0"
  10. concurrency:
  11. group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
  12. cancel-in-progress: true
  13. permissions:
  14. contents: read
  15. pull-requests: write
  16. jobs:
  17. post-update:
  18. # if: ${{ github.actor == 'dependabot[bot]' }}
  19. runs-on: ${{ matrix.os }}
  20. strategy:
  21. matrix:
  22. os:
  23. - ubuntu-latest
  24. # - macos-latest
  25. - windows-latest
  26. steps:
  27. - name: Checkout code
  28. uses: actions/checkout@v4
  29. with:
  30. fetch-depth: 0
  31. - name: Checkout out pull request
  32. env:
  33. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  34. run: |
  35. gh pr checkout ${{ github.event.pull_request.number }}
  36. - name: Setup Node
  37. uses: ./.github/actions/setup-node
  38. - name: Build
  39. run: |
  40. pnpm run build