Skip to content

ci: pin versions

ci: pin versions #295

Workflow file for this run

name: Docs
on:
push:
branches: [main]
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Use Node.js
uses: actions/[email protected]
with:
node-version-file: .nvmrc
- name: Use PNPM
uses: pnpm/[email protected]
with:
version: 7
- name: Setup user
run: |
git config --global user.email [email protected]
git config --global user.name "Action"
- name: Build docs
run: |
cd docs
pnpm install
pnpm run docs:build
cd .vitepress/dist
git init
git add -A
git commit -m 'deploy'
- name: Deploy docs
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: 'docs'
force: true
directory: './docs/.vitepress/dist'