ci.yml 894 B

123456789101112131415161718192021222324252627282930313233343536
  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: Setup Vite+
  24. uses: voidzero-dev/setup-vp@v1
  25. with:
  26. node-version-file: '.node-version'
  27. cache: true
  28. - name: Build
  29. run: vp run build --withTypes
  30. - name: Release
  31. run: vpx pkg-pr-new publish --compact --pnpm './packages/*' --packageManager=pnpm,npm,yarn