Skip to content

Commit

Permalink
ci: fix node setup (#663)
Browse files Browse the repository at this point in the history
  • Loading branch information
viceice authored Nov 12, 2024
1 parent 26cf2ad commit 698efb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/actions/setup-node/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ runs:
else
node_major=$(echo '${{ inputs.node-version }}' | grep -E -o '^[0-9]+')
fi
echo "CACHE_KEY=node_modules-v${node_major}-${{
echo "CACHE_KEY=node_modules-${{ runner.os }}-v${node_major}-${{
hashFiles('.node-version', 'pnpm-lock.yaml')
}}" >> "$GITHUB_ENV"
Expand All @@ -48,7 +48,7 @@ runs:
- name: ⚙️ Setup Node.js ${{ inputs.node-version }}
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version-file: ${{ inputs.node-version == '' && '.node-version' || inputs.node-version }}
node-version-file: ${{ inputs.node-version == '' && '.node-version' || '' }}
node-version: ${{ inputs.node-version }}
cache: ${{ env.CACHE_HIT != 'true' && 'pnpm' || '' }}

Expand Down

0 comments on commit 698efb6

Please sign in to comment.