mirror of
				https://github.com/actions/setup-dotnet.git
				synced 2025-10-31 23:23:46 +00:00 
			
		
		
		
	Compare commits
	
		
			1 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | 740310365d | 
| @ -15,6 +15,13 @@ documentation: | |||||||
| [Software installed on github hosted runners](https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#supported-software) | [Software installed on github hosted runners](https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#supported-software) | ||||||
| for .NET SDK versions that are currently available. | for .NET SDK versions that are currently available. | ||||||
| 
 | 
 | ||||||
|  | ## Breaking changes in V5 | ||||||
|  | 
 | ||||||
|  | - Upgraded action from node20 to node24 | ||||||
|  |   > Make sure your runner is on version v2.327.1 or later to ensure compatibility with this release. see [Release Notes](https://github.com/actions/runner/releases/tag/v2.327.1) | ||||||
|  | 
 | ||||||
|  | For more details, see the full release notes on the [release page](https://github.com/actions/setup-dotnet/releases/tag/v5.0.0) | ||||||
|  | 
 | ||||||
| ## Usage | ## Usage | ||||||
| 
 | 
 | ||||||
| See [action.yml](action.yml) | See [action.yml](action.yml) | ||||||
|  | |||||||
							
								
								
									
										55
									
								
								dist/cache-save/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										55
									
								
								dist/cache-save/index.js
									
									
									
									
										vendored
									
									
								
							| @ -87714,18 +87714,28 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( | |||||||
| }) : function(o, v) { | }) : function(o, v) { | ||||||
|     o["default"] = v; |     o["default"] = v; | ||||||
| }); | }); | ||||||
| var __importStar = (this && this.__importStar) || function (mod) { | var __importStar = (this && this.__importStar) || (function () { | ||||||
|     if (mod && mod.__esModule) return mod; |     var ownKeys = function(o) { | ||||||
|     var result = {}; |         ownKeys = Object.getOwnPropertyNames || function (o) { | ||||||
|     if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); |             var ar = []; | ||||||
|     __setModuleDefault(result, mod); |             for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; | ||||||
|     return result; |             return ar; | ||||||
| }; |         }; | ||||||
|  |         return ownKeys(o); | ||||||
|  |     }; | ||||||
|  |     return function (mod) { | ||||||
|  |         if (mod && mod.__esModule) return mod; | ||||||
|  |         var result = {}; | ||||||
|  |         if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); | ||||||
|  |         __setModuleDefault(result, mod); | ||||||
|  |         return result; | ||||||
|  |     }; | ||||||
|  | })(); | ||||||
| var __importDefault = (this && this.__importDefault) || function (mod) { | var __importDefault = (this && this.__importDefault) || function (mod) { | ||||||
|     return (mod && mod.__esModule) ? mod : { "default": mod }; |     return (mod && mod.__esModule) ? mod : { "default": mod }; | ||||||
| }; | }; | ||||||
| Object.defineProperty(exports, "__esModule", ({ value: true })); | Object.defineProperty(exports, "__esModule", ({ value: true })); | ||||||
| exports.run = void 0; | exports.run = run; | ||||||
| const core = __importStar(__nccwpck_require__(2186)); | const core = __importStar(__nccwpck_require__(2186)); | ||||||
| const cache = __importStar(__nccwpck_require__(7799)); | const cache = __importStar(__nccwpck_require__(7799)); | ||||||
| const node_fs_1 = __importDefault(__nccwpck_require__(7561)); | const node_fs_1 = __importDefault(__nccwpck_require__(7561)); | ||||||
| @ -87748,7 +87758,6 @@ async function run() { | |||||||
|         core.setFailed(error.message); |         core.setFailed(error.message); | ||||||
|     } |     } | ||||||
| } | } | ||||||
| exports.run = run; |  | ||||||
| const cachePackages = async () => { | const cachePackages = async () => { | ||||||
|     const state = core.getState(constants_1.State.CacheMatchedKey); |     const state = core.getState(constants_1.State.CacheMatchedKey); | ||||||
|     const primaryKey = core.getState(constants_1.State.CachePrimaryKey); |     const primaryKey = core.getState(constants_1.State.CachePrimaryKey); | ||||||
| @ -87796,15 +87805,26 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( | |||||||
| }) : function(o, v) { | }) : function(o, v) { | ||||||
|     o["default"] = v; |     o["default"] = v; | ||||||
| }); | }); | ||||||
| var __importStar = (this && this.__importStar) || function (mod) { | var __importStar = (this && this.__importStar) || (function () { | ||||||
|     if (mod && mod.__esModule) return mod; |     var ownKeys = function(o) { | ||||||
|     var result = {}; |         ownKeys = Object.getOwnPropertyNames || function (o) { | ||||||
|     if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); |             var ar = []; | ||||||
|     __setModuleDefault(result, mod); |             for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; | ||||||
|     return result; |             return ar; | ||||||
| }; |         }; | ||||||
|  |         return ownKeys(o); | ||||||
|  |     }; | ||||||
|  |     return function (mod) { | ||||||
|  |         if (mod && mod.__esModule) return mod; | ||||||
|  |         var result = {}; | ||||||
|  |         if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); | ||||||
|  |         __setModuleDefault(result, mod); | ||||||
|  |         return result; | ||||||
|  |     }; | ||||||
|  | })(); | ||||||
| Object.defineProperty(exports, "__esModule", ({ value: true })); | Object.defineProperty(exports, "__esModule", ({ value: true })); | ||||||
| exports.isCacheFeatureAvailable = exports.getNuGetFolderPath = void 0; | exports.getNuGetFolderPath = void 0; | ||||||
|  | exports.isCacheFeatureAvailable = isCacheFeatureAvailable; | ||||||
| const cache = __importStar(__nccwpck_require__(7799)); | const cache = __importStar(__nccwpck_require__(7799)); | ||||||
| const core = __importStar(__nccwpck_require__(2186)); | const core = __importStar(__nccwpck_require__(2186)); | ||||||
| const exec = __importStar(__nccwpck_require__(1514)); | const exec = __importStar(__nccwpck_require__(1514)); | ||||||
| @ -87869,7 +87889,6 @@ function isCacheFeatureAvailable() { | |||||||
|     core.warning('The runner was not able to contact the cache service. Caching will be skipped'); |     core.warning('The runner was not able to contact the cache service. Caching will be skipped'); | ||||||
|     return false; |     return false; | ||||||
| } | } | ||||||
| exports.isCacheFeatureAvailable = isCacheFeatureAvailable; |  | ||||||
| /** | /** | ||||||
|  * Returns this action runs on GitHub Enterprise Server or not. |  * Returns this action runs on GitHub Enterprise Server or not. | ||||||
|  */ |  */ | ||||||
|  | |||||||
							
								
								
									
										130
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										130
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							| @ -100029,15 +100029,25 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( | |||||||
| }) : function(o, v) { | }) : function(o, v) { | ||||||
|     o["default"] = v; |     o["default"] = v; | ||||||
| }); | }); | ||||||
| var __importStar = (this && this.__importStar) || function (mod) { | var __importStar = (this && this.__importStar) || (function () { | ||||||
|     if (mod && mod.__esModule) return mod; |     var ownKeys = function(o) { | ||||||
|     var result = {}; |         ownKeys = Object.getOwnPropertyNames || function (o) { | ||||||
|     if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); |             var ar = []; | ||||||
|     __setModuleDefault(result, mod); |             for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; | ||||||
|     return result; |             return ar; | ||||||
| }; |         }; | ||||||
|  |         return ownKeys(o); | ||||||
|  |     }; | ||||||
|  |     return function (mod) { | ||||||
|  |         if (mod && mod.__esModule) return mod; | ||||||
|  |         var result = {}; | ||||||
|  |         if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); | ||||||
|  |         __setModuleDefault(result, mod); | ||||||
|  |         return result; | ||||||
|  |     }; | ||||||
|  | })(); | ||||||
| Object.defineProperty(exports, "__esModule", ({ value: true })); | Object.defineProperty(exports, "__esModule", ({ value: true })); | ||||||
| exports.configAuthentication = void 0; | exports.configAuthentication = configAuthentication; | ||||||
| const fs = __importStar(__nccwpck_require__(7147)); | const fs = __importStar(__nccwpck_require__(7147)); | ||||||
| const path = __importStar(__nccwpck_require__(1017)); | const path = __importStar(__nccwpck_require__(1017)); | ||||||
| const core = __importStar(__nccwpck_require__(2186)); | const core = __importStar(__nccwpck_require__(2186)); | ||||||
| @ -100050,7 +100060,6 @@ function configAuthentication(feedUrl, existingFileLocation = '', processRoot = | |||||||
|     const tempNuGetConfig = path.resolve(processRoot, '../', 'nuget.config'); |     const tempNuGetConfig = path.resolve(processRoot, '../', 'nuget.config'); | ||||||
|     writeFeedToFile(feedUrl, existingNuGetConfig, tempNuGetConfig); |     writeFeedToFile(feedUrl, existingNuGetConfig, tempNuGetConfig); | ||||||
| } | } | ||||||
| exports.configAuthentication = configAuthentication; |  | ||||||
| function isValidKey(key) { | function isValidKey(key) { | ||||||
|     return /^[\w\-.]+$/i.test(key); |     return /^[\w\-.]+$/i.test(key); | ||||||
| } | } | ||||||
| @ -100216,13 +100225,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( | |||||||
| }) : function(o, v) { | }) : function(o, v) { | ||||||
|     o["default"] = v; |     o["default"] = v; | ||||||
| }); | }); | ||||||
| var __importStar = (this && this.__importStar) || function (mod) { | var __importStar = (this && this.__importStar) || (function () { | ||||||
|     if (mod && mod.__esModule) return mod; |     var ownKeys = function(o) { | ||||||
|     var result = {}; |         ownKeys = Object.getOwnPropertyNames || function (o) { | ||||||
|     if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); |             var ar = []; | ||||||
|     __setModuleDefault(result, mod); |             for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; | ||||||
|     return result; |             return ar; | ||||||
| }; |         }; | ||||||
|  |         return ownKeys(o); | ||||||
|  |     }; | ||||||
|  |     return function (mod) { | ||||||
|  |         if (mod && mod.__esModule) return mod; | ||||||
|  |         var result = {}; | ||||||
|  |         if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); | ||||||
|  |         __setModuleDefault(result, mod); | ||||||
|  |         return result; | ||||||
|  |     }; | ||||||
|  | })(); | ||||||
| Object.defineProperty(exports, "__esModule", ({ value: true })); | Object.defineProperty(exports, "__esModule", ({ value: true })); | ||||||
| exports.restoreCache = void 0; | exports.restoreCache = void 0; | ||||||
| const promises_1 = __nccwpck_require__(3977); | const promises_1 = __nccwpck_require__(3977); | ||||||
| @ -100287,15 +100306,26 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( | |||||||
| }) : function(o, v) { | }) : function(o, v) { | ||||||
|     o["default"] = v; |     o["default"] = v; | ||||||
| }); | }); | ||||||
| var __importStar = (this && this.__importStar) || function (mod) { | var __importStar = (this && this.__importStar) || (function () { | ||||||
|     if (mod && mod.__esModule) return mod; |     var ownKeys = function(o) { | ||||||
|     var result = {}; |         ownKeys = Object.getOwnPropertyNames || function (o) { | ||||||
|     if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); |             var ar = []; | ||||||
|     __setModuleDefault(result, mod); |             for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; | ||||||
|     return result; |             return ar; | ||||||
| }; |         }; | ||||||
|  |         return ownKeys(o); | ||||||
|  |     }; | ||||||
|  |     return function (mod) { | ||||||
|  |         if (mod && mod.__esModule) return mod; | ||||||
|  |         var result = {}; | ||||||
|  |         if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); | ||||||
|  |         __setModuleDefault(result, mod); | ||||||
|  |         return result; | ||||||
|  |     }; | ||||||
|  | })(); | ||||||
| Object.defineProperty(exports, "__esModule", ({ value: true })); | Object.defineProperty(exports, "__esModule", ({ value: true })); | ||||||
| exports.isCacheFeatureAvailable = exports.getNuGetFolderPath = void 0; | exports.getNuGetFolderPath = void 0; | ||||||
|  | exports.isCacheFeatureAvailable = isCacheFeatureAvailable; | ||||||
| const cache = __importStar(__nccwpck_require__(7799)); | const cache = __importStar(__nccwpck_require__(7799)); | ||||||
| const core = __importStar(__nccwpck_require__(2186)); | const core = __importStar(__nccwpck_require__(2186)); | ||||||
| const exec = __importStar(__nccwpck_require__(1514)); | const exec = __importStar(__nccwpck_require__(1514)); | ||||||
| @ -100360,7 +100390,6 @@ function isCacheFeatureAvailable() { | |||||||
|     core.warning('The runner was not able to contact the cache service. Caching will be skipped'); |     core.warning('The runner was not able to contact the cache service. Caching will be skipped'); | ||||||
|     return false; |     return false; | ||||||
| } | } | ||||||
| exports.isCacheFeatureAvailable = isCacheFeatureAvailable; |  | ||||||
| /** | /** | ||||||
|  * Returns this action runs on GitHub Enterprise Server or not. |  * Returns this action runs on GitHub Enterprise Server or not. | ||||||
|  */ |  */ | ||||||
| @ -100425,13 +100454,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( | |||||||
| }) : function(o, v) { | }) : function(o, v) { | ||||||
|     o["default"] = v; |     o["default"] = v; | ||||||
| }); | }); | ||||||
| var __importStar = (this && this.__importStar) || function (mod) { | var __importStar = (this && this.__importStar) || (function () { | ||||||
|     if (mod && mod.__esModule) return mod; |     var ownKeys = function(o) { | ||||||
|     var result = {}; |         ownKeys = Object.getOwnPropertyNames || function (o) { | ||||||
|     if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); |             var ar = []; | ||||||
|     __setModuleDefault(result, mod); |             for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; | ||||||
|     return result; |             return ar; | ||||||
| }; |         }; | ||||||
|  |         return ownKeys(o); | ||||||
|  |     }; | ||||||
|  |     return function (mod) { | ||||||
|  |         if (mod && mod.__esModule) return mod; | ||||||
|  |         var result = {}; | ||||||
|  |         if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); | ||||||
|  |         __setModuleDefault(result, mod); | ||||||
|  |         return result; | ||||||
|  |     }; | ||||||
|  | })(); | ||||||
| var __importDefault = (this && this.__importDefault) || function (mod) { | var __importDefault = (this && this.__importDefault) || function (mod) { | ||||||
|     return (mod && mod.__esModule) ? mod : { "default": mod }; |     return (mod && mod.__esModule) ? mod : { "default": mod }; | ||||||
| }; | }; | ||||||
| @ -100713,18 +100752,28 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( | |||||||
| }) : function(o, v) { | }) : function(o, v) { | ||||||
|     o["default"] = v; |     o["default"] = v; | ||||||
| }); | }); | ||||||
| var __importStar = (this && this.__importStar) || function (mod) { | var __importStar = (this && this.__importStar) || (function () { | ||||||
|     if (mod && mod.__esModule) return mod; |     var ownKeys = function(o) { | ||||||
|     var result = {}; |         ownKeys = Object.getOwnPropertyNames || function (o) { | ||||||
|     if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); |             var ar = []; | ||||||
|     __setModuleDefault(result, mod); |             for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; | ||||||
|     return result; |             return ar; | ||||||
| }; |         }; | ||||||
|  |         return ownKeys(o); | ||||||
|  |     }; | ||||||
|  |     return function (mod) { | ||||||
|  |         if (mod && mod.__esModule) return mod; | ||||||
|  |         var result = {}; | ||||||
|  |         if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); | ||||||
|  |         __setModuleDefault(result, mod); | ||||||
|  |         return result; | ||||||
|  |     }; | ||||||
|  | })(); | ||||||
| var __importDefault = (this && this.__importDefault) || function (mod) { | var __importDefault = (this && this.__importDefault) || function (mod) { | ||||||
|     return (mod && mod.__esModule) ? mod : { "default": mod }; |     return (mod && mod.__esModule) ? mod : { "default": mod }; | ||||||
| }; | }; | ||||||
| Object.defineProperty(exports, "__esModule", ({ value: true })); | Object.defineProperty(exports, "__esModule", ({ value: true })); | ||||||
| exports.run = void 0; | exports.run = run; | ||||||
| const core = __importStar(__nccwpck_require__(2186)); | const core = __importStar(__nccwpck_require__(2186)); | ||||||
| const installer_1 = __nccwpck_require__(2574); | const installer_1 = __nccwpck_require__(2574); | ||||||
| const fs = __importStar(__nccwpck_require__(7147)); | const fs = __importStar(__nccwpck_require__(7147)); | ||||||
| @ -100805,7 +100854,6 @@ async function run() { | |||||||
|         core.setFailed(error.message); |         core.setFailed(error.message); | ||||||
|     } |     } | ||||||
| } | } | ||||||
| exports.run = run; |  | ||||||
| function getVersionFromGlobalJson(globalJsonPath) { | function getVersionFromGlobalJson(globalJsonPath) { | ||||||
|     let version = ''; |     let version = ''; | ||||||
|     const globalJson = json5_1.default.parse( |     const globalJson = json5_1.default.parse( | ||||||
|  | |||||||
							
								
								
									
										9
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										9
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							| @ -37,7 +37,7 @@ | |||||||
|         "jest-each": "^29.7.0", |         "jest-each": "^29.7.0", | ||||||
|         "prettier": "^3.2.5", |         "prettier": "^3.2.5", | ||||||
|         "ts-jest": "^29.1.2", |         "ts-jest": "^29.1.2", | ||||||
|         "typescript": "^5.4.2", |         "typescript": "^5.9.2", | ||||||
|         "wget-improved": "^3.2.1" |         "wget-improved": "^3.2.1" | ||||||
|       }, |       }, | ||||||
|       "engines": { |       "engines": { | ||||||
| @ -5965,10 +5965,11 @@ | |||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|     "node_modules/typescript": { |     "node_modules/typescript": { | ||||||
|       "version": "5.4.2", |       "version": "5.9.2", | ||||||
|       "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.2.tgz", |       "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.2.tgz", | ||||||
|       "integrity": "sha512-+2/g0Fds1ERlP6JsakQQDXjZdZMM+rqpamFZJEKh4kwTIn3iDkgKtby0CeNd5ATNZ4Ry1ax15TMx0W2V+miizQ==", |       "integrity": "sha512-CWBzXQrc/qOkhidw1OzBTQuYRbfyxDXJMVJ1XNwUHGROVmuaeiEm3OslpZ1RV96d7SKKjZKrSJu3+t/xlw3R9A==", | ||||||
|       "dev": true, |       "dev": true, | ||||||
|  |       "license": "Apache-2.0", | ||||||
|       "bin": { |       "bin": { | ||||||
|         "tsc": "bin/tsc", |         "tsc": "bin/tsc", | ||||||
|         "tsserver": "bin/tsserver" |         "tsserver": "bin/tsserver" | ||||||
|  | |||||||
| @ -57,7 +57,7 @@ | |||||||
|     "jest-each": "^29.7.0", |     "jest-each": "^29.7.0", | ||||||
|     "prettier": "^3.2.5", |     "prettier": "^3.2.5", | ||||||
|     "ts-jest": "^29.1.2", |     "ts-jest": "^29.1.2", | ||||||
|     "typescript": "^5.4.2", |     "typescript": "^5.9.2", | ||||||
|     "wget-improved": "^3.2.1" |     "wget-improved": "^3.2.1" | ||||||
|   }, |   }, | ||||||
|   "jest": { |   "jest": { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user