Merge tag 'v4.0.0' into main (#221) #2
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: "Publish API Docs" | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Check node version | |
run: node -v | |
- name: Upgrade npm | |
run: npm install -g npm@8.5 | |
- name: Check npm version | |
run: npm -v | |
- name: Restore npm cache if possible | |
uses: actions/cache@v2 | |
with: | |
path: | | |
node_modules | |
*/*/node_modules | |
key: ${{ runner.os }}-lerna-${{ hashFiles('**/package.json') }} | |
restore-keys: | | |
${{ runner.os }}-lerna- | |
- name: Install modules | |
run: npm install | |
- name: Build docs | |
run: npm run build-docs | |
- name: Deploy docs 🚀 | |
uses: JamesIves/github-pages-deploy-action@4.1.4 | |
with: | |
branch: gh-pages | |
folder: packages/geoprocessing/docs |