chore(root): upgrade actions checkout and setup-node to v4 #171
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: documentation | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
publish: | |
name: github pages | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js 20 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install pnpm | |
run: npm install --location=global pnpm | |
- name: Remove pnpm-workspace.yaml | |
run: rm -rf ./pnpm-workspace.yaml | |
- name: Install dependencies | |
working-directory: ./packages/documentation | |
run: pnpm install | |
- name: Build docs | |
working-directory: ./packages/documentation | |
run: pnpm run build:docs | |
- name: GitHub Pages | |
uses: crazy-max/ghaction-github-pages@v4 | |
with: | |
target_branch: gh-pages | |
build_dir: ./packages/documentation/docs/.vuepress/dist | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_REPO }} |