Skip to content

Commit

Permalink
ci(project): Replace script execution from yarn to npx
Browse files Browse the repository at this point in the history
- Further debug git tags list
  • Loading branch information
minwork committed Sep 6, 2024
1 parent 3971e35 commit 70a8a7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/preview-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Build all packages
run: yarn nx run-many -t build
- name: Release packages
run: yarn tsx tools/scripts/release.ts --verbose
run: npx tsx tools/scripts/release.ts --verbose
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion tools/scripts/release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ import { execCommand } from 'nx/src/command-line/release/utils/exec-command';
console.log(`${chalk.blueBright(branch)} 🔀 Using ${chalk.yellow(specifier ?? 'default')} specifier\n`);

console.log('Tags list exec command', await execCommand('git', ['tag', '--sort', '-v:refname']));
console.log('Tags list execa', $`git tag --sort -v:refname`.stdout);
console.log('Tags list execa', execaSync('git', ['tag', '--sort', '-v:refname']).stdout);

// Create new version and update changelog if not only publishing
if (options.publishOnly) {
Expand Down

0 comments on commit 70a8a7b

Please sign in to comment.