From 95d38a842eac249d146d8edef23c190a40c492ea Mon Sep 17 00:00:00 2001 From: Shota Kubota Date: Mon, 14 Oct 2024 15:04:54 +0900 Subject: [PATCH] ci(workflows/textlint): update lint workflow --- .github/workflows/textlint.yaml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/textlint.yaml b/.github/workflows/textlint.yaml index 6b49894..d888982 100644 --- a/.github/workflows/textlint.yaml +++ b/.github/workflows/textlint.yaml @@ -1,30 +1,29 @@ name: Text check by Textlint on: push: - branches: [main, master] + branches: + - main paths: - 'entries/**.md' pull_request: - branches: [main, master] + branches: + - main paths: - 'entries/**.md' jobs: - build: - runs-on: ubuntu-latest - + lint: + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: actions/setup-node@v4 with: - node-version: v20.17.0 - + cache: 'npm' + node-version: 20 - name: Package Install - run: npm install - + run: npm ci - name: Exec Textlint run: | git diff origin/${GITHUB_BASE_REF}..origin/${GITHUB_HEAD_REF} \