Skip to content

chore(deps): update dependency @types/node to v20.14.9 #493

chore(deps): update dependency @types/node to v20.14.9

chore(deps): update dependency @types/node to v20.14.9 #493

Workflow file for this run

name: build
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
pull_request:
types:
- opened
- reopened
- synchronize
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
version: 8
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: pnpm-store-${{ hashFiles('**/package.json') }}
restore-keys: |
pnpm-store-
- name: Install dependencies
run: pnpm --recursive install
- name: Check source files
run: pnpm run typecheck
- name: Get current git commit hash
id: get-git-commit-hash
run: |
echo "::set-output name=gitCommitHash::$(git rev-parse HEAD)"
- uses: actions/cache@v3
id: docusaurus-build-cache
with:
path: |
./build
key: docusaurus-build-pr-${{ github.event.number }}-${{ steps.get-git-commit-hash.outputs.gitCommitHash }}
restore-keys: |
docusaurus-build-pr-${{ github.event.number }}-${{ steps.get-git-commit-hash.outputs.gitCommitHash }}
- name: Build docs
run: |
pnpm run build
if: ${{ !steps.docusaurus-build-cache.outputs.cache-hit }}