mirror of
https://github.com/pnpm/action-setup.git
synced 2026-09-10 03:03:23 +08:00
feat: support pnpm v12
Approve the pinned @pnpm/exe install script for npm 12, add pnpm 12 coverage across supported runner platforms, and clarify that action-setup remains supported alongside pnpm/setup.
This commit is contained in:
@@ -10,7 +10,15 @@ import pnpmLock from './bootstrap/pnpm-lock.json'
|
||||
import exeLock from './bootstrap/exe-lock.json'
|
||||
|
||||
const BOOTSTRAP_PNPM_PACKAGE_JSON = JSON.stringify({ private: true, dependencies: { pnpm: pnpmLock.packages['node_modules/pnpm'].version } })
|
||||
const BOOTSTRAP_EXE_PACKAGE_JSON = JSON.stringify({ private: true, dependencies: { '@pnpm/exe': exeLock.packages['node_modules/@pnpm/exe'].version } })
|
||||
const bootstrapExeVersion = exeLock.packages['node_modules/@pnpm/exe'].version
|
||||
const BOOTSTRAP_EXE_PACKAGE_JSON = JSON.stringify({
|
||||
private: true,
|
||||
dependencies: { '@pnpm/exe': bootstrapExeVersion },
|
||||
// npm 12 blocks dependency lifecycle scripts unless they are explicitly
|
||||
// approved. @pnpm/exe's verified, lockfile-pinned install script replaces
|
||||
// the placeholder executable with the native binary for this platform.
|
||||
allowScripts: { [`@pnpm/exe@${bootstrapExeVersion}`]: true },
|
||||
})
|
||||
|
||||
export interface SelfInstallerResult {
|
||||
exitCode: number
|
||||
|
||||
Reference in New Issue
Block a user