We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fae4f3 commit 297b96aCopy full SHA for 297b96a
github-actions/npm/checkout-and-setup-node/action.yml
@@ -51,6 +51,15 @@ runs:
51
node-version-file: ${{ inputs.node-version-file-path }}
52
node-version: ${{ inputs.node-version }}
53
54
+ - id: packageManager
55
+ run: |
56
+ echo "PACKAGE_MANAGER=$(cat package.json | jq ".packageManager" | sed -E 's/"(npm|pnpm|yarn).*$/\1/g')" > "$GITHUB_OUTPUT"
57
+
58
+ - if: steps.packageManager.outputs.PACKAGE_MANAGER == 'pnpm'
59
+ uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
60
+ with:
61
+ version: 9.15.4
62
63
# TODO(josephperrott): Determine if its safe to use this caching step.
64
# - uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
65
# if: ${{ inputs.cache-node-modules == 'true' }}
0 commit comments