Skip to content

Commit

Permalink
ci: ensure fnm is installed in build_reusable
Browse files Browse the repository at this point in the history
  • Loading branch information
ztanner committed Jan 15, 2025
1 parent 0bbc032 commit 34a7c81
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/build_reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,25 @@ jobs:
input_step_key: ${{ steps.var.outputs.input_step_key }}

steps:
- name: Check if fnm is installed
id: check-fnm
run: |
if [ -x "$(command -v fnm)" ]; then
echo "fnm found."
echo "found=true" >> $GITHUB_OUTPUT
else
echo "fnm not found."
echo "found=false" >> $GITHUB_OUTPUT
fi
- name: Install fnm
if: steps.check-fnm.outputs.found != 'true'
- run: |
curl -fsSL https://fnm.vercel.app/install | bash
export PATH="/home/runner/.local/share/fnm:$PATH"
echo "/home/runner/.local/share/fnm" >> $GITHUB_PATH
which fnm
- name: Normalize input step names into path key
uses: actions/github-script@v7
id: var
Expand Down

0 comments on commit 34a7c81

Please sign in to comment.