Skip to content

docs: fix error anchor link (#5620) #258

docs: fix error anchor link (#5620)

docs: fix error anchor link (#5620) #258

name: Build Modern.js Module Website
on:
push:
branches: [main]
paths:
- 'packages/document/module-doc/**'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build-module-tools-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/module-tools-docs run build:doc
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4.4.1
with:
repository-name: web-infra-dev/web-infra-dev.github.io
branch: main
folder: packages/document/module-doc/doc_build
token: ${{ secrets.MODERN_DEPLOY_TOKEN }}
target-folder: modern-js/module-tools
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