Skip to content

chore(deps): update dependency @types/node to v22.10.1 (#1204) #630

chore(deps): update dependency @types/node to v22.10.1 (#1204)

chore(deps): update dependency @types/node to v22.10.1 (#1204) #630

Workflow file for this run

name: Generate Docs
on:
push:
branches:
- master
workflow_dispatch:
jobs:
generate-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: 🏗 Setup node
uses: actions/setup-node@v4
with:
node-version-file: .node-version
- name: Setup pnpm
uses: pnpm/action-setup@v4
id: pnpm-install
with:
run_install: false
package_json_file: package.json
- name: 📂 Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: 📂 Setup pnpm cache
uses: actions/cache@v4
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: 👨🏻‍💻 Install dependencies (root)
run: pnpm install --frozen-lockfile --prefer-frozen-lockfile
- name: 👨🏻‍💻 Install dependencies (generate-docs)
working-directory: generate-docs
run: pnpm install --frozen-lockfile --prefer-frozen-lockfile
- name: 🧪 Run tests
run: pnpm run test
- name: 📝 Generate docs
uses: coactions/setup-xvfb@v1
with:
run: pnpm run start
working-directory: generate-docs
- name: Check existing branch
id: check-existing-branch
run: |
git fetch origin
if git rev-parse --verify origin/docs/update; then
echo "::set-output name=EXISTING_BRANCH::true"
else
echo "::set-output name=EXISTING_BRANCH::false"
fi
- name: 📤 Commit changes
if: steps.check-existing-branch.outputs.EXISTING_BRANCH == 'true'
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add docs/
git commit -m "docs: update docs - $GITHUB_SHA"
git push origin HEAD:docs/update -f
- name: 📤 Create Pull Request
id: create-pull-request
if: steps.check-existing-branch.outputs.EXISTING_BRANCH == 'false'
uses: peter-evans/create-pull-request@v7
with:
commit-message: 'docs: update docs'
title: 'docs: update docs'
body: 'Update docs'
branch: docs/update
base: master
author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
reviewers: book000
draft: false
delete-branch: true
add-paths: |
docs/