Skip to content

ci: switch to pnpm/action-setup@v3 for publish to github action #34

ci: switch to pnpm/action-setup@v3 for publish to github action

ci: switch to pnpm/action-setup@v3 for publish to github action #34

Workflow file for this run

name: GitHub pages
on:
push:
branches:
- main
paths:
- 'src/**'
- '.github/**'
- 'README.md'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 8
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm run build
- name: Generate typedoc
run: pnpm run docs
- name: Publish to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./api