diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1a5dca5d0..d3760e25f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -49,6 +49,7 @@ jobs: runs-on: ubuntu-latest permissions: contents: write + issues: write if: needs.release.outputs.latest_commit == github.sha steps: - uses: actions/setup-node@v3 @@ -69,12 +70,26 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_REPOSITORY: ${{ github.repository }} GITHUB_REF: ${{ github.ref }} + - name: Extract Version + if: ${{ failure() }} + id: extract-version + run: echo "::set-output name=VERSION::$(cat dist/version.txt)" + - name: Create Issue + if: ${{ failure() }} + uses: imjohnbo/issue-bot@v3 + with: + labels: failed-release + title: Publishing v${{ steps.extract-version.outputs.VERSION }} to GitHub Releases failed + body: See https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} release_npm: name: Publish to npm needs: release runs-on: ubuntu-latest permissions: contents: read + issues: write if: needs.release.outputs.latest_commit == github.sha steps: - uses: actions/setup-node@v3 @@ -99,12 +114,26 @@ jobs: NPM_DIST_TAG: latest NPM_REGISTRY: registry.npmjs.org NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: Extract Version + if: ${{ failure() }} + id: extract-version + run: echo "::set-output name=VERSION::$(cat dist/version.txt)" + - name: Create Issue + if: ${{ failure() }} + uses: imjohnbo/issue-bot@v3 + with: + labels: failed-release + title: Publishing v${{ steps.extract-version.outputs.VERSION }} to npm failed + body: See https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} release_maven: name: Publish to Maven Central needs: release runs-on: ubuntu-latest permissions: contents: read + issues: write if: needs.release.outputs.latest_commit == github.sha steps: - uses: actions/setup-java@v3 @@ -136,12 +165,26 @@ jobs: MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} MAVEN_STAGING_PROFILE_ID: ${{ secrets.MAVEN_STAGING_PROFILE_ID }} + - name: Extract Version + if: ${{ failure() }} + id: extract-version + run: echo "::set-output name=VERSION::$(cat dist/version.txt)" + - name: Create Issue + if: ${{ failure() }} + uses: imjohnbo/issue-bot@v3 + with: + labels: failed-release + title: Publishing v${{ steps.extract-version.outputs.VERSION }} to Maven Central failed + body: See https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} release_pypi: name: Publish to PyPI needs: release runs-on: ubuntu-latest permissions: contents: read + issues: write if: needs.release.outputs.latest_commit == github.sha steps: - uses: actions/setup-node@v3 @@ -168,12 +211,26 @@ jobs: env: TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }} TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} + - name: Extract Version + if: ${{ failure() }} + id: extract-version + run: echo "::set-output name=VERSION::$(cat dist/version.txt)" + - name: Create Issue + if: ${{ failure() }} + uses: imjohnbo/issue-bot@v3 + with: + labels: failed-release + title: Publishing v${{ steps.extract-version.outputs.VERSION }} to PyPI failed + body: See https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} release_nuget: name: Publish to NuGet Gallery needs: release runs-on: ubuntu-latest permissions: contents: read + issues: write if: needs.release.outputs.latest_commit == github.sha steps: - uses: actions/setup-node@v3 @@ -199,12 +256,26 @@ jobs: run: npx -p publib@latest publib-nuget env: NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} + - name: Extract Version + if: ${{ failure() }} + id: extract-version + run: echo "::set-output name=VERSION::$(cat dist/version.txt)" + - name: Create Issue + if: ${{ failure() }} + uses: imjohnbo/issue-bot@v3 + with: + labels: failed-release + title: Publishing v${{ steps.extract-version.outputs.VERSION }} to NuGet Gallery failed + body: See https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} release_golang: name: Publish to GitHub Go Module Repository needs: release runs-on: ubuntu-latest permissions: contents: read + issues: write if: needs.release.outputs.latest_commit == github.sha steps: - uses: actions/setup-node@v3 @@ -232,3 +303,16 @@ jobs: GIT_USER_NAME: CDK for Terraform Team GIT_USER_EMAIL: github-team-tf-cdk@hashicorp.com GITHUB_TOKEN: ${{ secrets.GO_GITHUB_TOKEN }} + - name: Extract Version + if: ${{ failure() }} + id: extract-version + run: echo "::set-output name=VERSION::$(cat dist/version.txt)" + - name: Create Issue + if: ${{ failure() }} + uses: imjohnbo/issue-bot@v3 + with: + labels: failed-release + title: Publishing v${{ steps.extract-version.outputs.VERSION }} to GitHub Go Module Repository failed + body: See https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/package.json b/package.json index d612256d6..feea19b6d 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "jsii-docgen": "^6.3.27", "jsii-pacmak": "^1.63.2", "npm-check-updates": "^15", - "projen": "^0.60.14", + "projen": "^0.60.16", "standard-version": "^9", "typescript": "^4.7.4" }, diff --git a/yarn.lock b/yarn.lock index c0750679b..4df79a027 100644 --- a/yarn.lock +++ b/yarn.lock @@ -99,9 +99,9 @@ jsii-srcmak "^0.1.627" "@cdktf/provider-project@^0.2.8": - version "0.2.52" - resolved "https://registry.yarnpkg.com/@cdktf/provider-project/-/provider-project-0.2.52.tgz#bff45de01cc0ba3ad4842a04c405dfa0b146cc26" - integrity sha512-ny6z2mz+0oD5TjdGaR5aB2RQ5RTXZTDzGI83Ioy42orof2rOx/6C6RWVx3/3aJ+toYMyG1l/NCeidfoz6fetjQ== + version "0.2.54" + resolved "https://registry.yarnpkg.com/@cdktf/provider-project/-/provider-project-0.2.54.tgz#afa91fbdf239b6c3ae31981c4564b38cff8da531" + integrity sha512-dF3gaCL0lWudobi293SnNwyFrfcf2QiaVIlDz3QyBa9meq4dDmFF4Ewzsi0HMFl4aXHDYHpwD78yO97b/jillQ== dependencies: change-case "^4.1.2" fs-extra "^10.1.0" @@ -3147,10 +3147,10 @@ progress@^2.0.3: resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8" integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA== -projen@^0.60.14: - version "0.60.14" - resolved "https://registry.yarnpkg.com/projen/-/projen-0.60.14.tgz#bc51ad43161745d928884b2ff68025c3ca3d1d9b" - integrity sha512-BrY9AgcUafK304wSinVUFr6mJ3cqGvRm2V/hZMUoFUka2bEgJXJNnY6VZEoLj5KRUarJZVvcoh8X6ckaFn44eA== +projen@^0.60.16: + version "0.60.16" + resolved "https://registry.yarnpkg.com/projen/-/projen-0.60.16.tgz#ec8dfac75d773866933e947c8510997bce88ac4b" + integrity sha512-599w++eQpuRFMu6x9roXrIII5tNuteXC4WrmXg2ovYUfyux1bX+Pk9X9H9OFW9eRx3ekh9Di4CUJzAG2CXr0qg== dependencies: "@iarna/toml" "^2.2.5" case "^1.6.3"