Test with TypeScript 5.9 (#189) #52
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: build-and-deploy | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/[email protected] | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-node@v1 | |
| with: | |
| node-version: '16.x' | |
| - run: git submodule update --init --recommend-shallow | |
| - run: npm ci | |
| - run: npm test | |
| - run: npm run build-docs | |
| - run: npm run generate | |
| - name: Check generated file is up-to-date with gpuweb submodule (`npm run generate` to fix this) | |
| run: git update-index --really-refresh && git diff-index --quiet HEAD | |
| - name: Deploy 📦 | |
| if: ${{ success() && github.ref == 'refs/heads/main' }} | |
| uses: JamesIves/[email protected] | |
| with: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| BRANCH: gh-pages | |
| FOLDER: tsdoc-src/out |