ci.yml 972 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. permissions:
  14. contents: read
  15. jobs:
  16. test:
  17. if: ${{ ! startsWith(github.event.head_commit.message, 'release:') && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository) }}
  18. uses: ./.github/workflows/test.yml
  19. continuous-release:
  20. if: github.repository == 'vuejs/core' && github.ref_name != 'vapor'
  21. runs-on: ubuntu-latest
  22. steps:
  23. - name: Checkout
  24. uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
  25. - name: Setup Vite+
  26. uses: voidzero-dev/setup-vp@v1
  27. with:
  28. node-version-file: '.node-version'
  29. cache: true
  30. - name: Build
  31. run: vp run build --withTypes
  32. - name: Release
  33. run: vpx pkg-pr-new publish --compact --pnpm './packages/*' --packageManager=pnpm,npm,yarn