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 c9a5692 commit b1d18ceCopy full SHA for b1d18ce
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
+ 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
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