File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
packages/code-infra/src/utils Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,9 @@ import { $ } from 'execa';
19
19
* @returns {Promise<string> }
20
20
*/
21
21
export async function findLatestTaggedVersion ( opts ) {
22
- const { stdout } = await $ ( { cwd : opts . cwd } ) `git describe --tags --abbrev=0 --match ${ 'v*' } ` ; // only include "version-tags"
22
+ const $$ = $ ( { cwd : opts . cwd } ) ;
23
+ await $$ `git fetch --tags` ;
24
+ const { stdout } = await $$ `git describe --tags --abbrev=0 --match ${ 'v*' } ` ; // only include "version-tags"
23
25
return stdout . trim ( ) ;
24
26
}
25
27
@@ -34,8 +36,7 @@ export async function findLatestTaggedVersion(opts) {
34
36
35
37
/**
36
38
* Fetches commits between two refs (lastRelease..release) including PR details.
37
- * It first tries to use the GraphQL API (more efficient) and falls back to the
38
- * REST api if it fails with server error.
39
+ * Throws if the `token` option is not provided.
39
40
*
40
41
* @param {FetchCommitsOptions } param0
41
42
* @returns {Promise<FetchedCommitDetails[]> }
You can’t perform that action at this time.
0 commit comments