From 66429a4e65221fb6f257780a9e4984e542307241 Mon Sep 17 00:00:00 2001 From: udondan Date: Wed, 10 Apr 2024 11:02:33 +0200 Subject: [PATCH] ci: fix publishing --- .github/workflows/test-publish.yml | 46 ++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/test-publish.yml diff --git a/.github/workflows/test-publish.yml b/.github/workflows/test-publish.yml new file mode 100644 index 0000000..c2d7fc5 --- /dev/null +++ b/.github/workflows/test-publish.yml @@ -0,0 +1,46 @@ +--- +name: Publish packages TEST + +concurrency: + group: test + cancel-in-progress: false + +on: + pull_request: + branches: + - main + workflow_dispatch: + +jobs: + publish: + runs-on: ubuntu-latest + + defaults: + run: + shell: bash + + container: + image: public.ecr.aws/jsii/superchain:1-bookworm-slim-node20 + + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + fetch-depth: 1 + + - name: Install dependencies + run: | + make install + sudo apt-get update + sudo apt-get install -y tree + + - name: Build source w/ jsii + run: | + lambda/build + npx jsii + make validate-package + + - name: Build packages w/ jsii-pacmak + run: | + npx jsii-pacmak --verbose + tree dist