mirror of
https://github.com/pnpm/action-setup.git
synced 2026-06-28 16:07:56 +00:00
Compare commits
3 Commits
ca34ad01e5
...
c7a612c565
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c7a612c565 | ||
|
|
62bce64275 | ||
|
|
4b568c8023 |
@ -1,7 +1,3 @@
|
||||
> ## :warning: Upgrade from v2!
|
||||
>
|
||||
> The v2 version of this action [has stopped working](https://github.com/pnpm/action-setup/issues/135) with newer Node.js versions. Please, upgrade to the latest version to fix any issues.
|
||||
|
||||
# Setup pnpm
|
||||
|
||||
Install pnpm package manager.
|
||||
|
||||
BIN
dist/index.js
vendored
BIN
dist/index.js
vendored
Binary file not shown.
@ -101,8 +101,8 @@ Remove one of these versions to avoid version mismatch errors like ERR_PNPM_BAD_
|
||||
}
|
||||
|
||||
if (typeof packageManager === 'string' && packageManager.startsWith('pnpm@')) {
|
||||
// pnpm will handle version management via packageManager field
|
||||
return undefined
|
||||
// Strip the "pnpm@" prefix and any "+sha..." hash suffix
|
||||
return packageManager.replace('pnpm@', '').replace(/\+.*$/, '')
|
||||
}
|
||||
|
||||
if (!GITHUB_WORKSPACE) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user