changeset-version.yml 994 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # https://github.com/changesets/action
  2. name: Changeset version
  3. on:
  4. workflow_dispatch:
  5. pull_request:
  6. types:
  7. - closed
  8. branches:
  9. - main
  10. permissions:
  11. pull-requests: write
  12. contents: write
  13. env:
  14. CI: true
  15. jobs:
  16. version:
  17. if: (github.event.pull_request.merged || github.event_name == 'workflow_dispatch') && github.actor != 'dependabot[bot]' && !contains(github.event.head_commit.message, '[skip ci]')
  18. # if: github.repository == 'vbenjs/vue-vben-admin'
  19. timeout-minutes: 15
  20. runs-on: ubuntu-latest
  21. steps:
  22. - name: Checkout code
  23. uses: actions/checkout@v4
  24. with:
  25. fetch-depth: 0
  26. - name: Setup Node
  27. uses: ./.github/actions/setup-node
  28. - name: Create Release Pull Request
  29. uses: changesets/action@v1
  30. with:
  31. version: pnpm run version
  32. commit: "chore: bump versions"
  33. title: "chore: bump versions"
  34. env:
  35. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}