From 49d00245d918c571843df0789fed79f12868f4f4 Mon Sep 17 00:00:00 2001 From: Maarten Zuidhoorn Date: Fri, 14 Jul 2023 19:02:20 +0200 Subject: [PATCH] Add `.yml` extension to `RELEASE_SPEC` file (#83) Add .yml extension to RELEASE_SPEC file --- src/functional.test.ts | 2 +- src/monorepo-workflow-operations.test.ts | 2 +- src/monorepo-workflow-operations.ts | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/functional.test.ts b/src/functional.test.ts index 86f9b49..821fb76 100644 --- a/src/functional.test.ts +++ b/src/functional.test.ts @@ -673,7 +673,7 @@ The release spec file has been retained for you to edit again and make the neces { replacements: [ { - from: `${environment.tempDirectoryPath}/RELEASE_SPEC`, + from: `${environment.tempDirectoryPath}/RELEASE_SPEC.yml`, to: '<>', }, ], diff --git a/src/monorepo-workflow-operations.test.ts b/src/monorepo-workflow-operations.test.ts index a6a543a..e1c1e20 100644 --- a/src/monorepo-workflow-operations.test.ts +++ b/src/monorepo-workflow-operations.test.ts @@ -185,7 +185,7 @@ async function setupFollowMonorepoWorkflow({ const editor = buildMockEditor(); const releaseSpecificationPath = path.join( sandbox.directoryPath, - 'RELEASE_SPEC', + 'RELEASE_SPEC.yml', ); const releaseSpecification = buildMockReleaseSpecification({ path: releaseSpecificationPath, diff --git a/src/monorepo-workflow-operations.ts b/src/monorepo-workflow-operations.ts index db4764e..5409ba5 100644 --- a/src/monorepo-workflow-operations.ts +++ b/src/monorepo-workflow-operations.ts @@ -64,7 +64,10 @@ export async function followMonorepoWorkflow({ stdout: Pick; stderr: Pick; }) { - const releaseSpecificationPath = path.join(tempDirectoryPath, 'RELEASE_SPEC'); + const releaseSpecificationPath = path.join( + tempDirectoryPath, + 'RELEASE_SPEC.yml', + ); if ( !firstRemovingExistingReleaseSpecification &&