Skip to content

Commit

Permalink
Updating workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jdslaugh committed Mar 27, 2024
1 parent c2b6ce4 commit a4e6722
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ name: docs
on:
push:
branches:
- main
- main
pull_request:
branches:
- main
- main
paths:
- 'docs/**'
- .github/workflows/docs.yml
- "docs/**"
- .github/workflows/docs.yml
jobs:
lint:
runs-on: ubuntu-latest
Expand All @@ -17,10 +17,10 @@ jobs:
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: '18.x'
node-version: "18.x"
check-latest: true
- name: Enforce consistent Yarn version
run: ./tools/install-yarn.sh
run: make yarn-ensure
- name: node_modules cache
id: node-modules-cache
uses: actions/cache@v4
Expand All @@ -30,6 +30,8 @@ jobs:
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
if: steps.node-modules-cache.outputs.cache-hit != 'true'
run: yarn --cwd docs/_website install
run: yarn install --immutable
working-directory: ./docs/_website
- name: lint
run: yarn --cwd docs/_website lint
run: yarn run lint
working-directory: ./docs/_website

0 comments on commit a4e6722

Please sign in to comment.