chore(deps): update actions/cache action to v4 #392
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: pr-preview | |
on: | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/[email protected] | |
with: | |
node-version: '15' | |
- uses: actions/[email protected] | |
with: | |
# npm cache files are stored in `~/.npm` on Linux/macOS | |
path: ~/.npm | |
key: ${{ runner.OS }}-node-${{ hashFiles('package-lock.json') }} | |
- run: npm ci | |
- run: npx redoc-cli bundle reference/toaztr.v1.yaml | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: specs | |
path: redoc-static.html |