2
0

build.yaml 448 B

12345678910111213141516171819202122
  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: '14'
  12. - run: npm install
  13. - run: npm run build
  14. - name: Make Release
  15. if: startsWith(github.ref, 'refs/tags/')
  16. run: scripts/make-release.sh
  17. env:
  18. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}