build.yaml 515 B

12345678910111213141516171819202122232425262728
  1. name: Build
  2. on: push
  3. jobs:
  4. tsc:
  5. name: Compile typescript
  6. runs-on: ubuntu-latest
  7. steps:
  8. - uses: actions/checkout@v2
  9. - uses: actions/setup-node@v2
  10. with:
  11. node-version: '15'
  12. - run: npm ci
  13. - name: Typecheck
  14. run: npm run typecheck
  15. - name: Test
  16. run: npm test
  17. - name: Make Release
  18. if: startsWith(github.ref, 'refs/tags/')
  19. run: scripts/make-release.sh
  20. env:
  21. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}