release.yml 563 B

123456789101112131415161718192021
  1. name: release
  2. on:
  3. create
  4. jobs:
  5. release:
  6. runs-on: ubuntu-latest
  7. if: github.event.ref_type == 'tag' && !contains(github.event.ref, 'alpha')
  8. steps:
  9. - uses: actions/checkout@v2
  10. - name: release
  11. uses: actions/setup-node@v2
  12. with:
  13. node-version: 14
  14. - run: |
  15. npm i -g lerna && npm run bootstrap
  16. node scripts/release.js
  17. env:
  18. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  19. CHANGELOG_PATH: content/start/changelog/index.md, content/start/changelog/index-en-US.md