From 1c914419a90733c3e654d9ceaabc682e58c570ec Mon Sep 17 00:00:00 2001 From: Ruth Cheesley Date: Fri, 25 Oct 2024 19:43:56 +0200 Subject: [PATCH] Maybe we need to install dependencies first? See https://github.com/errata-ai/vale-action/issues/138#issuecomment-2427931672 --- .github/workflows/vale_linting.yml | 35 +++++++++++++++++++----------- 1 file changed, 22 insertions(+), 13 deletions(-) diff --git a/.github/workflows/vale_linting.yml b/.github/workflows/vale_linting.yml index a2cfd7349..bbbfc5972 100644 --- a/.github/workflows/vale_linting.yml +++ b/.github/workflows/vale_linting.yml @@ -1,20 +1,29 @@ name: Vale linting on: pull_request: - + jobs: prose: runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Vale - uses: errata-ai/vale-action@reviewdog - with: - version: 3.7.1 - files: docs/en - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/checkout@v4 + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version-file: ".node-version" + - name: Install dependencies + run: npm install + - name: Vale + uses: errata-ai/vale-action@reviewdog + with: + version: 3.7.1 + files: docs/en + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}