mirror of
https://github.com/actions/setup-node.git
synced 2025-07-04 08:33:47 +00:00
start corepack test
This commit is contained in:
parent
70c3da958b
commit
1e2990d3cd
4 changed files with 362 additions and 250 deletions
|
@ -47,8 +47,12 @@ export async function run() {
|
|||
}
|
||||
|
||||
if (cache && isCacheFeatureAvailable()) {
|
||||
if (semver.gte(version, '14')) {
|
||||
await getCommandOutput('corepack enable');
|
||||
if (semver.gte(version, '14.19.0')) {
|
||||
try {
|
||||
core.info(await getCommandOutput('corepack enable'));
|
||||
} catch (err) {
|
||||
core.warning(`Failed to enable corepack. Error: ${err.message}`)
|
||||
}
|
||||
}
|
||||
const cacheDependencyPath = core.getInput('cache-dependency-path');
|
||||
await restoreCache(cache, cacheDependencyPath);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue