11
0
Fork 0
mirror of https://github.com/actions/setup-node.git synced 2026-05-23 21:01:54 +00:00
This commit is contained in:
Salman Chishti 2026-04-23 10:29:14 +05:30 committed by GitHub
commit bbc9063767
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 16 additions and 0 deletions

View file

@ -46344,6 +46344,11 @@ process.on('uncaughtException', e => {
// Added early exit to resolve issue with slow post action step:
async function run(earlyExit) {
try {
const cacheWriteEnabled = core.getInput('cache-write');
if (cacheWriteEnabled === 'false') {
core.info('Cache write is disabled (read-only mode). Skipping cache save.');
return;
}
const cacheLock = core.getState(constants_1.State.CachePackageManager);
if (cacheLock) {
await cachePackages(cacheLock);