Skip to content

Merge pull request #1 from Davek145/browserstack #11

Merge pull request #1 from Davek145/browserstack

Merge pull request #1 from Davek145/browserstack #11

name: publish docs
on:
push:
branches: [ main ]
jobs:
docs:
runs-on: ubuntu-latest
defaults:
run:
working-directory: nodejs
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 16
- run: npm install
- run: npm run docs
- name: Publish Docs
if: github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: nodejs/docs
destination_dir: nodejs/jsdoc