Merge pull request #2934 from semantic-release/beta
This commit is contained in:
		
						commit
						11788ed5dc
					
				
							
								
								
									
										5
									
								
								.github/workflows/test.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								.github/workflows/test.yml
									
									
									
									
										vendored
									
									
								
							| @ -20,8 +20,9 @@ jobs: | |||||||
|     strategy: |     strategy: | ||||||
|       matrix: |       matrix: | ||||||
|         node-version: |         node-version: | ||||||
|           - 18.0.0 |           - 18.17.0 | ||||||
|           - 19 |           - 20.6.1 | ||||||
|  |           - 20 | ||||||
| 
 | 
 | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
|     timeout-minutes: 10 |     timeout-minutes: 10 | ||||||
|  | |||||||
							
								
								
									
										4429
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										4429
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										12
									
								
								package.json
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								package.json
									
									
									
									
									
								
							| @ -8,6 +8,7 @@ | |||||||
|     "files": [ |     "files": [ | ||||||
|       "test/**/*.test.js" |       "test/**/*.test.js" | ||||||
|     ], |     ], | ||||||
|  |     "failFast": true, | ||||||
|     "nodeArguments": [ |     "nodeArguments": [ | ||||||
|       "--loader=testdouble", |       "--loader=testdouble", | ||||||
|       "--no-warnings" |       "--no-warnings" | ||||||
| @ -26,11 +27,11 @@ | |||||||
|     "Matt Travi <npm@travi.org> (https://matt.travi.org/)" |     "Matt Travi <npm@travi.org> (https://matt.travi.org/)" | ||||||
|   ], |   ], | ||||||
|   "dependencies": { |   "dependencies": { | ||||||
|     "@semantic-release/commit-analyzer": "^10.0.0", |     "@semantic-release/commit-analyzer": "^11.0.0-beta.3", | ||||||
|     "@semantic-release/error": "^4.0.0", |     "@semantic-release/error": "^4.0.0", | ||||||
|     "@semantic-release/github": "^9.0.0", |     "@semantic-release/github": "^9.0.0", | ||||||
|     "@semantic-release/npm": "^10.0.2", |     "@semantic-release/npm": "^11.0.0", | ||||||
|     "@semantic-release/release-notes-generator": "^11.0.0", |     "@semantic-release/release-notes-generator": "^12.0.0-beta.2", | ||||||
|     "aggregate-error": "^5.0.0", |     "aggregate-error": "^5.0.0", | ||||||
|     "cosmiconfig": "^8.0.0", |     "cosmiconfig": "^8.0.0", | ||||||
|     "debug": "^4.0.0", |     "debug": "^4.0.0", | ||||||
| @ -75,8 +76,9 @@ | |||||||
|     "testdouble": "3.19.0" |     "testdouble": "3.19.0" | ||||||
|   }, |   }, | ||||||
|   "engines": { |   "engines": { | ||||||
|     "node": ">=18" |     "node": "^18.17 || >=20.6.1" | ||||||
|   }, |   }, | ||||||
|  |   "exports": "./index.js", | ||||||
|   "files": [ |   "files": [ | ||||||
|     "bin", |     "bin", | ||||||
|     "docs", |     "docs", | ||||||
| @ -98,7 +100,7 @@ | |||||||
|     "version" |     "version" | ||||||
|   ], |   ], | ||||||
|   "license": "MIT", |   "license": "MIT", | ||||||
|   "main": "index.js", |   "main": "./index.js", | ||||||
|   "types": "index.d.ts", |   "types": "index.d.ts", | ||||||
|   "c8": { |   "c8": { | ||||||
|     "include": [ |     "include": [ | ||||||
|  | |||||||
| @ -43,7 +43,7 @@ export async function initGit(withRemote) { | |||||||
|  * |  * | ||||||
|  * @param {Boolean} withRemote `true` to create a shallow clone of a bare repository. |  * @param {Boolean} withRemote `true` to create a shallow clone of a bare repository. | ||||||
|  * @param {String} [branch='master'] The branch to initialize. |  * @param {String} [branch='master'] The branch to initialize. | ||||||
|  * @return {String} The path of the clone if `withRemote` is `true`, the path of the repository otherwise. |  * @return {Promise<Object>} The path of the clone if `withRemote` is `true`, the path of the repository otherwise. | ||||||
|  */ |  */ | ||||||
| export async function gitRepo(withRemote, branch = "master") { | export async function gitRepo(withRemote, branch = "master") { | ||||||
|   let { cwd, repositoryUrl } = await initGit(withRemote); |   let { cwd, repositoryUrl } = await initGit(withRemote); | ||||||
|  | |||||||
| @ -35,7 +35,7 @@ let env; | |||||||
| 
 | 
 | ||||||
| // Environment variables used only for the local npm command used to do verification
 | // Environment variables used only for the local npm command used to do verification
 | ||||||
| const npmTestEnv = { | const npmTestEnv = { | ||||||
|   ...process.env, |   ...processEnvWithoutGitHubActionsVariables, | ||||||
|   ...npmRegistry.authEnv(), |   ...npmRegistry.authEnv(), | ||||||
|   npm_config_registry: npmRegistry.url, |   npm_config_registry: npmRegistry.url, | ||||||
| }; | }; | ||||||
| @ -516,8 +516,8 @@ test("Pass options via CLI arguments", async (t) => { | |||||||
| }); | }); | ||||||
| 
 | 
 | ||||||
| test("Run via JS API", async (t) => { | test("Run via JS API", async (t) => { | ||||||
|   td.replace("../lib/logger", { log: () => {}, error: () => {}, stdout: () => {} }); |   await td.replaceEsm("../lib/logger", null, { log: () => {}, error: () => {}, stdout: () => {} }); | ||||||
|   td.replace("env-ci", () => ({ isCi: true, branch: "master", isPr: false })); |   await td.replaceEsm("env-ci", null, () => ({ isCi: true, branch: "master", isPr: false })); | ||||||
|   const semanticRelease = (await import("../index.js")).default; |   const semanticRelease = (await import("../index.js")).default; | ||||||
|   const packageName = "test-js-api"; |   const packageName = "test-js-api"; | ||||||
|   const owner = "git"; |   const owner = "git"; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user