Skip to content

fix: restore pnpm-lock.yaml dropped by AI Studio docs commit #44

fix: restore pnpm-lock.yaml dropped by AI Studio docs commit

fix: restore pnpm-lock.yaml dropped by AI Studio docs commit #44

Workflow file for this run

name: Docs
# Rspress → GitHub Pages
on:
push:
branches: [main]
paths:
- "docs/**"
- "website/**"
- "i18n.json"
- "typedoc.json"
- "packages/tools/docs.mjs"
- "packages/tools/docs-*.mjs"
- "modules/sdk/@sfmc-sdk/src/**"
- "modules/sdk/@sfmc-sdk/tsconfig.typedoc.json"
- "package.json"
- "pnpm-lock.yaml"
- "pnpm-workspace.yaml"
- ".github/workflows/docs.yml"
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages-docs
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v4
with:
run_install: false
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: .node-version
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build workspaces
run: pnpm -r --filter '!@sfmc-bds/docs-site' run build
- name: Build docs (Rspress + TypeDoc)
run: pnpm run docs build
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: doc_build
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4