12345678910111213141516171819202122232425262728 |
- name: Build
- on: push
- jobs:
- tsc:
- name: Compile typescript
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2
- - uses: actions/setup-node@v2
- with:
- node-version: '15'
- - run: npm ci
- - name: Typecheck
- run: npm run typecheck
- - name: Test
- run: npm test
- - name: Make Release
- if: startsWith(github.ref, 'refs/tags/')
- run: scripts/make-release.sh
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|