canary.yml 752 B

12345678910111213141516171819202122232425262728293031
  1. name: canary release
  2. on:
  3. # Runs every Monday at 1 AM UTC (9:00 AM in Singapore)
  4. schedule:
  5. - cron: 0 1 * * MON
  6. workflow_dispatch:
  7. jobs:
  8. canary:
  9. # prevents this action from running on forks
  10. if: github.repository == 'vuejs/core'
  11. runs-on: ubuntu-latest
  12. environment: Release
  13. steps:
  14. - uses: actions/checkout@v4
  15. - name: Install pnpm
  16. uses: pnpm/action-setup@v4.0.0
  17. - name: Install Node.js
  18. uses: actions/setup-node@v4
  19. with:
  20. node-version-file: '.node-version'
  21. registry-url: 'https://registry.npmjs.org'
  22. cache: 'pnpm'
  23. - run: pnpm install
  24. - run: pnpm release --canary --publish
  25. env:
  26. NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}