Skip to content

Bump @types/node from 22.7.9 to 22.9.0 #676

Bump @types/node from 22.7.9 to 22.9.0

Bump @types/node from 22.7.9 to 22.9.0 #676

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: [20.x, 22.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- run: yarn --frozen-lockfile
- run: yarn build
- run: yarn doc
- uses: actions/upload-artifact@v4
if: ${{ matrix.node-version == '20.x' }}
with:
name: docs
path: docs/
docs:
runs-on: ubuntu-22.04
needs: build
if: ${{ github.event_name == 'push' }}
steps:
- uses: actions/download-artifact@v4
with:
name: docs
path: docs/
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs