Skip to content

Commit

Permalink
chore(codegen): update codegen-ci with configured smithy-typescript c…
Browse files Browse the repository at this point in the history
…ommit (#5303)
  • Loading branch information
Steven Yuan authored Oct 2, 2023
1 parent be891bd commit ba89e7e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/codegen-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@ jobs:

- name: build and publish smithy-typescript
run: |
git clone --depth 1 https://github.com/awslabs/smithy-typescript.git
cd smithy-typescript
./gradlew clean build publishToMavenLocal
cd ..
node ./scripts/generate-clients/build-smithy-typescript-ci.js
- name: build and test codegen
run: |
Expand Down
14 changes: 14 additions & 0 deletions scripts/generate-clients/build-smithy-typescript-ci.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const path = require("path");

const { buildSmithyTypeScript } = require("./build-smithy-typescript");
const { SMITHY_TS_COMMIT } = require("./config");

(async () => {
try {
const SMITHY_TS_DIR = path.normalize(path.join("/tmp", `smithy-typescript-${SMITHY_TS_COMMIT}`));
await buildSmithyTypeScript(SMITHY_TS_DIR, SMITHY_TS_COMMIT);
} catch (error) {
console.error(error);
throw error;
}
})();

0 comments on commit ba89e7e

Please sign in to comment.