ci.yml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. name: 'ci'
  2. on:
  3. push:
  4. branches:
  5. - '**'
  6. tags:
  7. - '!**'
  8. pull_request:
  9. branches:
  10. - main
  11. - minor
  12. - vapor
  13. jobs:
  14. test:
  15. if: ${{ ! startsWith(github.event.head_commit.message, 'release:') && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository) }}
  16. uses: ./.github/workflows/test.yml
  17. continuous-release:
  18. if: github.repository == 'vuejs/core' && github.ref_name != 'vapor'
  19. runs-on: ubuntu-latest
  20. steps:
  21. - name: Checkout
  22. uses: actions/checkout@v6
  23. - name: Install pnpm
  24. uses: pnpm/action-setup@v4
  25. - name: Install Node.js
  26. uses: actions/setup-node@v6
  27. with:
  28. node-version-file: '.node-version'
  29. registry-url: 'https://registry.npmjs.org'
  30. cache: 'pnpm'
  31. - name: Install deps
  32. run: pnpm install
  33. - name: Build
  34. run: pnpm build --withTypes
  35. - name: Release
  36. run: pnpx pkg-pr-new publish --compact --pnpm './packages/*' --packageManager=pnpm,npm,yarn