Skip to content

Commit

Permalink
Update Node.js setup action
Browse files Browse the repository at this point in the history
  • Loading branch information
kamiazya committed Jul 27, 2024
1 parent 338bd2b commit 3a42b47
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/actions/setup/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,16 @@ runs:
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
- name: Setup pnpm
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
- name: Setup Node.js
- if: ${{ inputs.node-version == '' }}
name: Setup Node.js
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version-file: ./.node-version
cache: pnpm
- if: ${{ inputs.node-version != '' }}
name: Setup Node.js v${{ inputs.node-version }}
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: ${{ inputs.node-version }}
cache: pnpm
- name: Install Dependencies
Expand Down

0 comments on commit 3a42b47

Please sign in to comment.