name: Publish GitHub Pages

on:
  push:
    branches: [master]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2.4.0
      - name: Use Node.js
        uses: actions/setup-node@v2.5.1
        with:
          node-version: 12
      - run: npm ci
      - run: npm run build --if-present
      - run: npm run docs
      - name: Publish GitHub Pages
        uses: peaceiris/actions-gh-pages@v3.8.0
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          publish_dir: ./
          destination_dir: ./
          exclude_assets: "./lib/__tests__,./node_modules,./scripts,./LICENSE,./README.md,./src,./.github,./*.json,./*.cjs,./.*ignore"
          keep_files: true

name: Publish GitHub Pages

on:
  push:
    branches: [master]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2.4.0
      - name: Use Node.js
        uses: actions/setup-node@v2.5.1
        with:
          node-version: 12
      - name: Update to npm@8 for github deps
        run: npm install -g npm@8
      - run: npm ci
      - run: npm run build --if-present
      - run: npm run docs
      - name: Publish GitHub Pages
        uses: peaceiris/actions-gh-pages@v3.8.0
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          publish_dir: ./
          destination_dir: ./
          exclude_assets: "./lib/__tests__,./node_modules,./scripts,./LICENSE,./README.md,./src,./.github,./*.json,./*.cjs,./.*ignore"
          keep_files: true

Update publish to npm@8 for Github dependencies
Update publish to npm@8 for Github dependencies
