Merge pull request #837 from rpearce/dependabot/npm_and_yarn/dev-depe… #1897
This file contains 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: CI | |
on: | |
push: | |
paths-ignore: | |
- '*.md' | |
- '*.nix' | |
- '.all-contributorsrc' | |
- '.vscode/**' | |
- 'Dockerfile' | |
- 'LICENSE' | |
- 'compose.yml' | |
pull_request: | |
paths-ignore: | |
- '*.md' | |
- '*.nix' | |
- '.all-contributorsrc' | |
- '.vscode/**' | |
- 'Dockerfile' | |
- 'LICENSE' | |
- 'compose.yml' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo under GH workspace | |
uses: actions/checkout@v4 | |
- name: Use pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 'latest' | |
- name: Use nodejs | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 'latest' | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile --ignore-scripts | |
- name: Run the CI script | |
run: pnpm run ci | |
- name: Deploy to gh-pages | |
uses: peaceiris/actions-gh-pages@v4 | |
if: ${{ github.ref == 'refs/heads/main' }} | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./docs |