fix: vale linter configuration #32
Workflow file for this run
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: Deploy PR Preview | |
on: | |
pull_request: | |
branches: | |
- main | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- closed | |
paths-ignore: | |
- '.docsearch/**' | |
- 'README.md' | |
- '.gitpod.yml' | |
workflow_dispatch: | |
env: | |
ALGOLIA_APP_ID: ${{secrets.ALGOLIA_APP_ID}} | |
ALGOLIA_KEY: ${{secrets.ALGOLIA_KEY}} | |
NO_INDEX: true | |
concurrency: preview-${{ github.ref }} | |
jobs: | |
deploy-pr-preview: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'npm' | |
- name: Set Preview Path | |
run: echo "PREVIEW_PATH=sauce-docs/pr-preview/pr-${{ github.event.number }}" >> "$GITHUB_ENV" | |
- name: Install Dependencies | |
if: github.event.action != 'closed' # Skip if the PR was closed | |
run: | | |
npm install | |
- name: Build | |
if: github.event.action != 'closed' # Skip if the PR was closed | |
run: | | |
npm run build | |
- name: Deploy PR | |
uses: rossjrw/pr-preview-action@v1 | |
with: | |
source-dir: ./build/ |