Skip to content

Commit

Permalink
test(cli-e2e): fix version not found errors from npm install setup
Browse files Browse the repository at this point in the history
  • Loading branch information
matejchalk committed May 23, 2024
1 parent 4158088 commit 1ea193c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tools/scripts/start-local-registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ export default async () => {
verbose: true,
});

// find latest version
const version = execSync('git describe --tags --abbrev=0')
.toString()
.trim()
.replace(/^v/, '');

// is is also possible to use nx release to publish the packages to the local registry
execFileSync(
'npx',
Expand All @@ -25,7 +31,7 @@ export default async () => {
'--targets',
'publish',
'--ver',
'1.0.0',
version,
'--tag',
'e2e',
],
Expand Down

0 comments on commit 1ea193c

Please sign in to comment.