ci.yml 1.2 KB

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