We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5aba295 commit a1a3fc9Copy full SHA for a1a3fc9
packages/code-infra/src/utils/changelog.mjs
@@ -19,7 +19,9 @@ import { $ } from 'execa';
19
* @returns {Promise<string>}
20
*/
21
export async function findLatestTaggedVersion(opts) {
22
- const { stdout } = await $({ cwd: opts.cwd })`git describe --tags --abbrev=0 --match ${'v*'}`; // only include "version-tags"
+ const $$ = $({ cwd: opts.cwd });
23
+ await $$`git fetch --tags`;
24
+ const { stdout } = await $$`git describe --tags --abbrev=0 --match ${'v*'}`; // only include "version-tags"
25
return stdout.trim();
26
}
27
0 commit comments