Skip to content

Commit

Permalink
chore: fixing release
Browse files Browse the repository at this point in the history
  • Loading branch information
corymhall committed Dec 9, 2023
1 parent 38132cf commit 30f71bd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ project.tasks.tryFind('release')?.spawn(project.addTask('copy-files', {
exec: 'cp package.json dist/ && cp -r projenrc dist/',
}));

project.github?.tryFindWorkflow('release')?.file?.patch(JsonPatch.replace('/jobs/release_github/steps/3/run', 'yarn install && npx ts-node projenrc/release-version.ts'));
project.github?.tryFindWorkflow('release')?.file?.patch(JsonPatch.replace('/jobs/release_github/steps/3/run', 'mv dist/package.json ./ && mv dist/projenrc ./ && yarn install && npx ts-node projenrc/release-version.ts'));
project.gitignore.exclude('dist/package.json');
project.gitignore.exclude('dist/projenrc');

Expand Down
2 changes: 1 addition & 1 deletion projenrc/release-version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export interface BumpOptions {
* @param options options
*/
export async function release(cwd: string, options: BumpOptions) {
const releaseTagFile = join(cwd, options.releaseTagFile ?? 'releasetag.txt');
const releaseTagFile = join(cwd, options.releaseTagFile ?? 'dist/releasetag.txt');

const tagVersion = (await fs.readFile(releaseTagFile, 'utf-8')).trim();

Expand Down

0 comments on commit 30f71bd

Please sign in to comment.