Skip to content

Commit

Permalink
fix: add back version/major/minor/patch (#1118)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe committed Nov 24, 2021
1 parent 2265a13 commit 4b6ae50
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ export const MANIFEST_PULL_REQUEST_TITLE_PATTERN = 'chore: release ${branch}';

interface CreatedRelease extends GitHubRelease {
path: string;
version: string;
major: number;
minor: number;
patch: number;
}

export class Manifest {
Expand Down Expand Up @@ -751,6 +755,10 @@ export class Manifest {
return {
...githubRelease,
path: release.path,
version: release.tag.version.toString(),
major: release.tag.version.major,
minor: release.tag.version.minor,
patch: release.tag.version.patch,
};
}

Expand Down
12 changes: 12 additions & 0 deletions test/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,10 @@ describe('CLI', () => {
notes: 'some release notes',
url: 'url-of-release',
path: '.',
version: 'v1.2.3',
major: 1,
minor: 2,
patch: 3,
},
]);
});
Expand Down Expand Up @@ -928,6 +932,10 @@ describe('CLI', () => {
notes: 'some release notes',
url: 'url-of-release',
path: '.',
version: 'v1.2.3',
major: 1,
minor: 2,
patch: 3,
},
]);
});
Expand Down Expand Up @@ -1079,6 +1087,10 @@ describe('CLI', () => {
notes: 'some release notes',
url: 'url-of-release',
path: '.',
version: 'v1.2.3',
major: 1,
minor: 2,
patch: 3,
},
]);
});
Expand Down

0 comments on commit 4b6ae50

Please sign in to comment.