File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
github-actions/npm/checkout-and-setup-node Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 5151 node-version-file : ${{ inputs.node-version-file-path }}
5252 node-version : ${{ inputs.node-version }}
5353
54+ - id : packageManager
55+ shell : bash
56+ run : |
57+ echo "PACKAGE_MANAGER=$(cat package.json | jq ".packageManager" | sed -E 's/"(npm|pnpm|yarn).*$/\1/g')" > "$GITHUB_OUTPUT"
58+
59+ - if : steps.packageManager.outputs.PACKAGE_MANAGER == 'pnpm'
60+ uses : pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
61+ with :
62+ version : 9.15.4
63+
5464 # TODO(josephperrott): Determine if its safe to use this caching step.
5565 # - uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
5666 # if: ${{ inputs.cache-node-modules == 'true' }}
You can’t perform that action at this time.
0 commit comments