semantic-release.yaml 601 B

12345678910111213141516171819202122232425262728
  1. name: Release
  2. 'on':
  3. push:
  4. branches:
  5. - master
  6. - next
  7. - alpha
  8. - next-major
  9. - beta
  10. - '*.x'
  11. jobs:
  12. release:
  13. name: release
  14. runs-on: ubuntu-latest
  15. steps:
  16. - uses: actions/checkout@v2
  17. - uses: actions/setup-node@v2
  18. with:
  19. cache: npm
  20. node-version: 16
  21. - run: npm ci
  22. - run: npm run build
  23. - run: zip -r dist.zip dist
  24. - run: npx semantic-release
  25. env:
  26. HUSKY: 0
  27. NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_BOT_NPM_TOKEN }}
  28. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}