Skip to content

Commit

Permalink
chore: set artifact retention (#38)
Browse files Browse the repository at this point in the history
Fixes #
  • Loading branch information
corymhall authored Jan 6, 2024
1 parent ebf4893 commit 96fce60
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/build.yml

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

1 change: 1 addition & 0 deletions .github/workflows/release.yml

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

9 changes: 8 additions & 1 deletion .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,19 @@ buildWorkflow?.file?.patch(JsonPatch.replace(
'git diff --staged --patch --binary --exit-code > .repo.patch || echo "self_mutation_happened=true" >> $GITHUB_OUTPUT',
].join('\n'),
));
buildWorkflow?.file?.patch(JsonPatch.add(
'/jobs/build/steps/5/with/retention-days', 1,
));

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

project.github?.tryFindWorkflow('release')?.file?.patch(JsonPatch.replace(
const releaseWorkflow = project.github?.tryFindWorkflow('release');
releaseWorkflow?.file?.patch(JsonPatch.add(
'/jobs/release/steps/7/with/retention-days', 1,
));
releaseWorkflow?.file?.patch(JsonPatch.replace(
'/jobs/release_github/steps/3/run',
[
'mv dist/package.json ./',
Expand Down

0 comments on commit 96fce60

Please sign in to comment.