Skip to content

feat: update rspress version (#4969) #541

feat: update rspress version (#4969)

feat: update rspress version (#4969) #541

name: Build Builder Website
on:
push:
branches: [main]
paths:
- 'packages/document/builder-doc/**'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build-builder-website:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Install Pnpm
run: corepack enable
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'
- name: Nx Cache
id: nx-cache
uses: actions/cache@v3
with:
path: .nx-cache
key: nx-${{ github.ref_name }}-${{ github.sha }}
restore-keys: |
nx-${{ github.ref_name }}-
nx-
- name: Install Dependencies
run: pnpm install
- name: Build Website
run: pnpm --filter @modern-js/builder-doc run build:doc
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
repository-name: web-infra-dev/web-infra-dev.github.io
branch: main
folder: packages/document/builder-doc/doc_build
token: ${{ secrets.MODERN_DEPLOY_TOKEN }}
target-folder: modern-js/builder
git-config-name: gh-pages-bot
git-config-email: 41898282+github-actions[bot]@users.noreply.github.com
# enable single-commit to reduce the repo size
single-commit: true
clean: true