Bump json5 from 2.2.1 to 2.2.3 #169
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: Build docs from a pull request | |
on: | |
pull_request: | |
paths: | |
- attractions/** | |
- docs/** | |
- CHANGELOG.md | |
- MIGRATION_GUIDE.md | |
- package.json | |
- pnpm-lock.yaml | |
jobs: | |
build-docs: | |
name: Build docs | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: docs | |
steps: | |
- name: Checkout ποΈ | |
uses: actions/checkout@v2 | |
with: | |
persist-credentials: false | |
- name: Set up Node 14 π¦ | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '14' | |
- name: Cache pnpm modules π | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-pnpm-modules | |
with: | |
path: ~/.pnpm-store | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}- | |
- name: Install pnpm π§° | |
uses: pnpm/[email protected] | |
with: | |
version: 6.14.2 | |
- name: Build docs π§ | |
env: | |
SAPPER_APP_BASEPATH: attractions/${{ github.event.number }} | |
run: | | |
pnpm install | |
pnpm run export -- --basepath attractions/${{ github.event.number }} | |
- name: Save the PR number π© | |
run: echo "${{ github.event.number }}" > ../pr_number.txt | |
# The ".." is to go outside the docs directory | |
- name: Upload the PR number π€ | |
uses: actions/upload-artifact@v2 | |
with: | |
name: pr_number | |
path: pr_number.txt | |
- name: Upload the built docs π€ | |
uses: actions/upload-artifact@v2 | |
with: | |
name: docs | |
path: docs/__sapper__/export/attractions/${{ github.event.number }}/ |