Skip to content

Commit

Permalink
chore: fix package.sh for publishing (#1035)
Browse files Browse the repository at this point in the history
The `release` and `bump` tasks write to `dist/changelog.md` and
`dist/version.txt`. Unfortunately, the `publish.sh` script that delivlib
uses removes the `dist` directory before copying over the artifacts. This caused
the release to fail.
  • Loading branch information
njlynch committed Sep 6, 2021
1 parent 9ee075f commit b67f047
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 12 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/release.yml

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

24 changes: 23 additions & 1 deletion .projen/tasks.json

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

5 changes: 2 additions & 3 deletions .projenrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ const project = new TypeScriptProject({
secret: 'GITHUB_TOKEN',
},
autoApproveUpgrades: true,

releaseToNpm: true,
});

// trick projen so that it doesn't override the version in package.json
Expand All @@ -66,7 +68,4 @@ compileCustomResourceHandlers.exec('/bin/bash ./build-custom-resource-handlers.s

project.compileTask.prependSpawn(compileCustomResourceHandlers);

project.packageTask.reset();
project.packageTask.exec('/bin/bash ./package.sh');

project.synth();
1 change: 1 addition & 0 deletions package.json

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

8 changes: 0 additions & 8 deletions package.sh

This file was deleted.

0 comments on commit b67f047

Please sign in to comment.