release.yml 467 B

1234567891011121314151617181920212223
  1. name: Release workflow
  2. on:
  3. push:
  4. branches:
  5. - main
  6. jobs:
  7. release:
  8. name: release
  9. runs-on: ubuntu-latest
  10. steps:
  11. - uses: actions/checkout@v2
  12. - uses: actions/setup-node@v2
  13. with:
  14. cache: npm
  15. node-version: 18
  16. - run: npm i
  17. - run: npm run build
  18. - run: npm run semantic-release
  19. env:
  20. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  21. NPM_TOKEN: ${{ secrets.NPM_TOKEN }}