fix: fix approvals (#314) #13
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: Docs | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
cache: 'yarn' # cache node modules | |
node-version: 18 | |
- run: corepack enable | |
- run: yarn install --immutable | |
- run: yarn run sdk:lint # lint code | |
- run: yarn run sdk:build # compile typescript into javascript | |
- name: Build docs | |
run: npm run docs | |
- name: Deploy | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: docs |