Skip to content

Commit

Permalink
chore: fix release workflow (#91)
Browse files Browse the repository at this point in the history
Fixes #
  • Loading branch information
corymhall authored Oct 8, 2024
1 parent 96326e3 commit ca3001f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
3 changes: 2 additions & 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 .projen/tasks.json

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

9 changes: 7 additions & 2 deletions .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,11 @@ buildWorkflow?.file?.patch(JsonPatch.add(
));

project.tasks.tryFind('release')?.spawn(project.addTask('copy-files', {
exec: 'cp package.json dist/ && cp -r projenrc dist/ && cp -r .git dist/',
exec: [
'cp package.json dist/',
'cp yarn.lock dist/',
'cp -r projenrc dist/',
].join(' && '),
}));

const releaseWorkflow = project.github?.tryFindWorkflow('release');
Expand All @@ -155,8 +159,9 @@ releaseWorkflow?.file?.patch(JsonPatch.replace(
'/jobs/release_github/steps/3/run',
[
'mv dist/package.json ./',
'mv dist/yarn.lock ./',
'mv dist/projenrc ./',
'yarn install',
'yarn install --check-files --frozen-lockfile',
'npx ts-node projenrc/release-version.ts',
].join('\n'),
));
Expand Down

0 comments on commit ca3001f

Please sign in to comment.