Skip to content

Commit

Permalink
Update package.json path
Browse files Browse the repository at this point in the history
  • Loading branch information
andreogle committed Sep 5, 2024
1 parent 9f5d201 commit 3d712b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/release-scripts/tag-and-release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const tagAndRelease = async (repo: string, branch: string = 'main') => {
const gitDiff = execSyncWithErrorHandling(`git diff origin/${branch}`);
if (gitDiff !== '') throw new Error('Not up to date with the remote');

const packageJson = JSON.parse(readFileSync(join(__dirname, '../package.json'), 'utf8')) as any;
const packageJson = JSON.parse(readFileSync(join(__dirname, '../../package.json'), 'utf8')) as any;
const { version } = packageJson;
console.info(`Version set to ${version}...`);

Expand Down

0 comments on commit 3d712b0

Please sign in to comment.