fix(deps): update dependency ajv to ^8.18.0 (#417) #414
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: website | |
| on: | |
| push: | |
| branches: [main] | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Install package dependencies | |
| run: yarn | |
| - name: Build Typescript project | |
| run: yarn build | |
| - name: Run Tests to Collect Coverage | |
| run: yarn test | |
| - name: Update Coverage Badge | |
| run: | | |
| mkdir -p website/build/img | |
| npx make-coverage-badge --output-path ./website/build/img/coverage.svg | |
| - name: Release to NPM using Semantic Release | |
| if: ${{ success() }} | |
| uses: cycjimmy/semantic-release-action@v3 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| - name: Build Docusaurus | |
| run: | | |
| cd website | |
| yarn install | |
| yarn build | |
| cd - | |
| - name: Deploy to GitHub Pages | |
| if: ${{ success() }} | |
| uses: crazy-max/ghaction-github-pages@v4 | |
| with: | |
| target_branch: gh-pages | |
| build_dir: website/build | |
| keep_history: true | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |