diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7bcb677..765ca52 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,7 +30,10 @@ jobs: - name: Install dependencies run: yarn install --check-files --frozen-lockfile - name: release - run: npx projen release + run: |- + export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query 'Account' | tr -d '"') + export CDK_DEFAULT_REGION=${AWS_REGION} + npx projen release - name: Check for new commits id: git_remote run: echo ::set-output name=latest_commit::"$(git ls-remote origin -h ${{ github.ref }} | cut -f1)" diff --git a/.projenrc.js b/.projenrc.js index 96ce2c0..fcd15b6 100644 --- a/.projenrc.js +++ b/.projenrc.js @@ -117,8 +117,8 @@ releaseWorkflow.addOverride('jobs.release.env', { AWS_ACCESS_KEY_ID: '${{ secrets.AWS_ACCESS_KEY_ID }}', AWS_SECRET_ACCESS_KEY: '${{ secrets.AWS_SECRET_ACCESS_KEY }}', }); -// releaseWorkflow.addOverride('jobs.release.steps.3', { -// name: 'release', -// run: 'export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query \'Account\' | tr -d \'"\')\nexport CDK_DEFAULT_REGION=${AWS_REGION}\nnpx projen release', -// }); +releaseWorkflow.addOverride('jobs.release.steps.3', { + name: 'release', + run: 'export CDK_DEFAULT_ACCOUNT=$(aws sts get-caller-identity --query \'Account\' | tr -d \'"\')\nexport CDK_DEFAULT_REGION=${AWS_REGION}\nnpx projen release', +}); project.synth(); \ No newline at end of file