Skip to content

build(deps-dev): bump @types/node from 20.8.2 to 20.8.4 #400

build(deps-dev): bump @types/node from 20.8.2 to 20.8.4

build(deps-dev): bump @types/node from 20.8.2 to 20.8.4 #400

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [18.x, 19.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- run: yarn --frozen-lockfile
- run: yarn build
- run: yarn doc
- uses: actions/upload-artifact@v3
if: ${{ matrix.node-version == '18.x' }}
with:
name: docs
path: docs/
docs:
runs-on: ubuntu-22.04
needs: build
if: ${{ github.event_name == 'push' }}
steps:
- uses: actions/download-artifact@v3
with:
name: docs
path: docs/
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs