Skip to content

Commit

Permalink
Fix docs build check post-step (#12)
Browse files Browse the repository at this point in the history
Currently, the docs build check action fails. The reason is that
setup-node with yarn caching throws an error when yarn cache directory
doesn't exist. The action throws an error to prevent saving empty
folder, see actions/setup-node#317. This PR is
a workaround for that.
  • Loading branch information
chmjkb authored Nov 12, 2024
1 parent be6c804 commit a26e6ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/docs-build-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ jobs:
cache: 'yarn'
- name: Install node dependencies
working-directory: ${{ env.WORKING_DIRECTORY }}
run: yarn
# the mkdir is a workaround to avoid this: https://github.com/actions/setup-node/issues/317
run: mkdir -p .yarn/cache && yarn
- name: Generate docs
working-directory: ${{ env.WORKING_DIRECTORY }}
run: yarn build

0 comments on commit a26e6ec

Please sign in to comment.