mirror of
				https://github.com/actions/setup-node.git
				synced 2025-11-04 08:23:34 +00:00 
			
		
		
		
	update impl
This commit is contained in:
		
							parent
							
								
									42d6dff7e7
								
							
						
					
					
						commit
						9a425941d6
					
				
							
								
								
									
										16
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										16
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							@ -73586,13 +73586,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
 | 
				
			|||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
 | 
					Object.defineProperty(exports, "__esModule", ({ value: true }));
 | 
				
			||||||
const core = __importStar(__nccwpck_require__(2186));
 | 
					const core = __importStar(__nccwpck_require__(2186));
 | 
				
			||||||
const exec = __importStar(__nccwpck_require__(1514));
 | 
					const exec = __importStar(__nccwpck_require__(1514));
 | 
				
			||||||
const installer = __importStar(__nccwpck_require__(2574));
 | 
					 | 
				
			||||||
const fs_1 = __importDefault(__nccwpck_require__(7147));
 | 
					const fs_1 = __importDefault(__nccwpck_require__(7147));
 | 
				
			||||||
const auth = __importStar(__nccwpck_require__(7573));
 | 
					const os_1 = __importDefault(__nccwpck_require__(2037));
 | 
				
			||||||
const path = __importStar(__nccwpck_require__(1017));
 | 
					const path = __importStar(__nccwpck_require__(1017));
 | 
				
			||||||
 | 
					const auth = __importStar(__nccwpck_require__(7573));
 | 
				
			||||||
const cache_restore_1 = __nccwpck_require__(9517);
 | 
					const cache_restore_1 = __nccwpck_require__(9517);
 | 
				
			||||||
const cache_utils_1 = __nccwpck_require__(1678);
 | 
					const cache_utils_1 = __nccwpck_require__(1678);
 | 
				
			||||||
const os = __nccwpck_require__(2037);
 | 
					const installer = __importStar(__nccwpck_require__(2574));
 | 
				
			||||||
function run() {
 | 
					function run() {
 | 
				
			||||||
    return __awaiter(this, void 0, void 0, function* () {
 | 
					    return __awaiter(this, void 0, void 0, function* () {
 | 
				
			||||||
        try {
 | 
					        try {
 | 
				
			||||||
@ -73609,7 +73609,7 @@ function run() {
 | 
				
			|||||||
                core.warning('`architecture` is provided but `node-version` is missing. In this configuration, the version/architecture of Node will not be changed. To fix this, provide `architecture` in combination with `node-version`');
 | 
					                core.warning('`architecture` is provided but `node-version` is missing. In this configuration, the version/architecture of Node will not be changed. To fix this, provide `architecture` in combination with `node-version`');
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            if (!arch) {
 | 
					            if (!arch) {
 | 
				
			||||||
                arch = os.arch();
 | 
					                arch = os_1.default.arch();
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            if (version) {
 | 
					            if (version) {
 | 
				
			||||||
                let token = core.getInput('token');
 | 
					                let token = core.getInput('token');
 | 
				
			||||||
@ -73624,6 +73624,14 @@ function run() {
 | 
				
			|||||||
            if (registryUrl) {
 | 
					            if (registryUrl) {
 | 
				
			||||||
                auth.configAuthentication(registryUrl, alwaysAuth);
 | 
					                auth.configAuthentication(registryUrl, alwaysAuth);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					            const enableCorepack = core.getInput('corepack');
 | 
				
			||||||
 | 
					            if (enableCorepack !== 'false') {
 | 
				
			||||||
 | 
					                const args = ['enable'];
 | 
				
			||||||
 | 
					                if (enableCorepack !== 'true') {
 | 
				
			||||||
 | 
					                    args.push(...enableCorepack.split(' '));
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					                yield exec.exec('corepack', args);
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
            if (cache && cache_utils_1.isCacheFeatureAvailable()) {
 | 
					            if (cache && cache_utils_1.isCacheFeatureAvailable()) {
 | 
				
			||||||
                const cacheDependencyPath = core.getInput('cache-dependency-path');
 | 
					                const cacheDependencyPath = core.getInput('cache-dependency-path');
 | 
				
			||||||
                yield cache_restore_1.restoreCache(cache, cacheDependencyPath);
 | 
					                yield cache_restore_1.restoreCache(cache, cacheDependencyPath);
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										11
									
								
								src/main.ts
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								src/main.ts
									
									
									
									
									
								
							@ -48,9 +48,14 @@ export async function run() {
 | 
				
			|||||||
      auth.configAuthentication(registryUrl, alwaysAuth);
 | 
					      auth.configAuthentication(registryUrl, alwaysAuth);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const enableCorepack = core.getBooleanInput('corepack');
 | 
					    const enableCorepack = core.getInput('corepack');
 | 
				
			||||||
    if (enableCorepack) {
 | 
					    if (enableCorepack !== 'false') {
 | 
				
			||||||
      await exec.exec('corepack', ['enable']);
 | 
					      const args = ['enable'];
 | 
				
			||||||
 | 
					      if (enableCorepack !== 'true') {
 | 
				
			||||||
 | 
					        args.push(...enableCorepack.split(' '));
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      await exec.exec('corepack', args);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (cache && isCacheFeatureAvailable()) {
 | 
					    if (cache && isCacheFeatureAvailable()) {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user