Skip to content

Commit

Permalink
ci: Ensure prettier runs with the right NodeJS
Browse files Browse the repository at this point in the history
It seems that it wants to pick up a binary called `nodejs`, while
`actions/setup-node` is only installing one called `node`.

Let's hack around this with a symlink.

Signed-off-by: Matt Wozniski <[email protected]>
  • Loading branch information
godlygeek committed Nov 24, 2023
1 parent e112027 commit 1cce4cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 16
- name: Symlink node as nodejs
run: ln -sf "$(which node)" "$(which node)js"
- name: Set up Python
uses: actions/setup-python@v4
with:
Expand Down

0 comments on commit 1cce4cb

Please sign in to comment.