Update yarn to pnpm in workflow #31
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: Deploy Docs | |
on: [push, pull_request] | |
jobs: | |
build_and_docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm | |
- name: Test to see if the project compiles | |
run: pnpm run build | |
- name: Build the docs | |
run: npx typedoc | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@4.1.4 | |
with: | |
branch: gh-pages | |
folder: docs |