From b32d635bb5397763b60d8ce6ccaa08efef78910d Mon Sep 17 00:00:00 2001 From: team-tf-cdk Date: Sat, 16 Jul 2022 00:07:53 +0000 Subject: [PATCH] chore(deps): upgrade dependencies Upgrades project dependencies. See details in [workflow run]. [Workflow Run]: https://github.com/hashicorp/cdktf-provider-digitalocean/actions/runs/2679997294 ------ *Automatically created by projen via the "upgrade-main" workflow* Signed-off-by: team-tf-cdk --- .github/workflows/build.yml | 25 +++++++++++++++++++++++ .github/workflows/release.yml | 33 ++++++++++++++++++++++++++++++ .projen/tasks.json | 12 +++++++++++ package.json | 7 ++++++- yarn.lock | 38 +++++++++++++++++------------------ 5 files changed, 95 insertions(+), 20 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f23576b43..13e36a78a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -178,3 +178,28 @@ jobs: run: cd .repo && npx projen package:dotnet - name: Collect dotnet Artifact run: mv .repo/dist dist + package-go: + needs: build + runs-on: ubuntu-latest + permissions: {} + if: "! needs.build.outputs.self_mutation_happened" + steps: + - uses: actions/setup-node@v3 + with: + node-version: 14.x + - uses: actions/setup-go@v3 + with: + go-version: ^1.16.0 + - name: Download build artifacts + uses: actions/download-artifact@v3 + with: + name: build-artifact + path: dist + - name: Prepare Repository + run: mv dist .repo + - name: Install Dependencies + run: cd .repo && yarn install --check-files --frozen-lockfile + - name: Create go artifact + run: cd .repo && npx projen package:go + - name: Collect go Artifact + run: mv .repo/dist dist diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 274d4ce9d..1a5dca5d0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -199,3 +199,36 @@ jobs: run: npx -p publib@latest publib-nuget env: NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} + release_golang: + name: Publish to GitHub Go Module Repository + needs: release + runs-on: ubuntu-latest + permissions: + contents: read + if: needs.release.outputs.latest_commit == github.sha + steps: + - uses: actions/setup-node@v3 + with: + node-version: 14.x + - uses: actions/setup-go@v3 + with: + go-version: ^1.16.0 + - name: Download build artifacts + uses: actions/download-artifact@v3 + with: + name: build-artifact + path: dist + - name: Prepare Repository + run: mv dist .repo + - name: Install Dependencies + run: cd .repo && yarn install --check-files --frozen-lockfile + - name: Create go artifact + run: cd .repo && npx projen package:go + - name: Collect go Artifact + run: mv .repo/dist dist + - name: Release + run: npx -p publib@latest publib-golang + env: + GIT_USER_NAME: CDK for Terraform Team + GIT_USER_EMAIL: github-team-tf-cdk@hashicorp.com + GITHUB_TOKEN: ${{ secrets.GO_GITHUB_TOKEN }} diff --git a/.projen/tasks.json b/.projen/tasks.json index 2cd96517f..0b9bcd4a7 100644 --- a/.projen/tasks.json +++ b/.projen/tasks.json @@ -159,6 +159,9 @@ }, { "spawn": "package:dotnet" + }, + { + "spawn": "package:go" } ] }, @@ -171,6 +174,15 @@ } ] }, + "package:go": { + "name": "package:go", + "description": "Create go language bindings", + "steps": [ + { + "exec": "jsii-pacmak -v --target go" + } + ] + }, "package:java": { "name": "package:java", "description": "Create java language bindings", diff --git a/package.json b/package.json index ce0468b69..1042d161c 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "package": "npx projen package", "package-all": "npx projen package-all", "package:dotnet": "npx projen package:dotnet", + "package:go": "npx projen package:go", "package:java": "npx projen package:java", "package:js": "npx projen package:js", "package:python": "npx projen package:python", @@ -52,7 +53,7 @@ "jsii-docgen": "^6.3.27", "jsii-pacmak": "^1.62.0", "npm-check-updates": "^12", - "projen": "^0.58.29", + "projen": "^0.58.30", "standard-version": "^9", "typescript": "^4.7.4" }, @@ -95,6 +96,10 @@ "dotnet": { "namespace": "HashiCorp.Cdktf.Providers.Digitalocean", "packageId": "HashiCorp.Cdktf.Providers.Digitalocean" + }, + "go": { + "moduleName": "github.com/hashicorp/cdktf-provider-digitalocean-go", + "packageName": "digitalocean" } }, "tsc": { diff --git a/yarn.lock b/yarn.lock index 805f7a850..a2ac7bab1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -93,9 +93,9 @@ jsii-srcmak "^0.1.520" "@cdktf/provider-project@^0.2.8": - version "0.2.32" - resolved "https://registry.yarnpkg.com/@cdktf/provider-project/-/provider-project-0.2.32.tgz#4f5fb2b8e41d05399681eabe7c89958e57ee98cb" - integrity sha512-E3xBRiY784dICmSYZ+cE2aLZp7tmGkDo8lgx2+mR/+1YKElPXX2ut1D7wpioxSIUcItahfAiX4KujdTye/kF1w== + version "0.2.35" + resolved "https://registry.yarnpkg.com/@cdktf/provider-project/-/provider-project-0.2.35.tgz#037ad89d27fc9f47b843d135a750371fc1c95ee8" + integrity sha512-VQd3xoIZjKf3hJ+fscv8EP6/yRXgycG4HLFER5qMyybVzaBa/FK8jnEgHGICU9UVe56PRLo4TsCIrMAis39Mcg== dependencies: change-case "^4.1.2" fs-extra "^10.1.0" @@ -374,9 +374,9 @@ form-data "^3.0.0" "@types/node@*": - version "18.0.4" - resolved "https://registry.yarnpkg.com/@types/node/-/node-18.0.4.tgz#48aedbf35efb3af1248e4cd4d792c730290cd5d6" - integrity sha512-M0+G6V0Y4YV8cqzHssZpaNCqvYwlCiulmm0PwpNLF55r/+cT8Ol42CHRU1SEaYFH2rTwiiE1aYg/2g2rrtGdPA== + version "18.0.5" + resolved "https://registry.yarnpkg.com/@types/node/-/node-18.0.5.tgz#96be8113b014e9e7f0c3609c4a25afadd85ff659" + integrity sha512-En7tneq+j0qAiVwysBD79y86MT3ModuoIJbe7JXp+sb5UAjInSShmK3nXXMioBzfF7rXC12hv12d4IyCVwN4dA== "@types/node@^14": version "14.18.22" @@ -924,9 +924,9 @@ combined-stream@^1.0.8: delayed-stream "~1.0.0" commander@^9.1.0: - version "9.3.0" - resolved "https://registry.yarnpkg.com/commander/-/commander-9.3.0.tgz#f619114a5a2d2054e0d9ff1b31d5ccf89255e26b" - integrity sha512-hv95iU5uXPbK83mjrJKuZyFM/LBAoCV/XhVGkS5Je6tl7sxr6A0ITMw5WoRV46/UaJ46Nllm3Xt7IaJhXTIkzw== + version "9.4.0" + resolved "https://registry.yarnpkg.com/commander/-/commander-9.4.0.tgz#bc4a40918fefe52e22450c111ecd6b7acce6f11c" + integrity sha512-sRPT+umqkz90UA8M1yqYfnHlZA7fF6nSphDtxeywPZ49ysjxDQybzk13CL+mXekDRG92skbcqCLVovuCusNmFw== commonmark@^0.30.0: version "0.30.0" @@ -998,9 +998,9 @@ constant-case@^3.0.4: upper-case "^2.0.2" constructs@^10.0.0, constructs@^10.0.25: - version "10.1.45" - resolved "https://registry.yarnpkg.com/constructs/-/constructs-10.1.45.tgz#89b19e3d7523824a6e8bed547122aa90e5442169" - integrity sha512-AmMJHYqvDKUYXEPcqRHAtsI0szgJFiznTB465QB4Tqa35bGj1YvfY+wcYF1MMCQL7pSB/q0W8k1wjnNr8EqOhA== + version "10.1.46" + resolved "https://registry.yarnpkg.com/constructs/-/constructs-10.1.46.tgz#8a9a75b7f552a90348016fb4383dd0220ec4be8d" + integrity sha512-Ngkl01YWwzorrvc6dsAJuPMgLXmYYACBBlj6pwDb24P29jlNzNO1JHI3To2Qs1WXdRhbGlFkLIc88XOube2sfw== conventional-changelog-angular@^5.0.12: version "5.0.13" @@ -2133,9 +2133,9 @@ jsii-rosetta@^1.55.1, jsii-rosetta@^1.57.0, jsii-rosetta@^1.62.0: yargs "^16.2.0" jsii-srcmak@^0.1.520: - version "0.1.616" - resolved "https://registry.yarnpkg.com/jsii-srcmak/-/jsii-srcmak-0.1.616.tgz#0ced005228da66b8b5bdc25dbb00eff929b2146b" - integrity sha512-+dSJkqeoNGh+IKrTN0Zarn7qhU0mFlBypZExBZEd1qQnCnztKwuS2y6rPnRxBpa/drJfnJeopbv6aR+tnkWKzg== + version "0.1.617" + resolved "https://registry.yarnpkg.com/jsii-srcmak/-/jsii-srcmak-0.1.617.tgz#bb97f06dffbb544d431bfa3bf9c8102730154af1" + integrity sha512-xBEPxkZFMdHlf13YwkxM5YWO3ZjYyVEAeoAYi6ids2FosEwItsQYob+/Zpj0djxnoc0DPEx0irAADZdeQVvBsg== dependencies: fs-extra "^9.1.0" jsii "^1.62.0" @@ -3067,10 +3067,10 @@ progress@^2.0.3: resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8" integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA== -projen@^0.58.29: - version "0.58.29" - resolved "https://registry.yarnpkg.com/projen/-/projen-0.58.29.tgz#2e1f7ce8e79936c1f3cea6c59387778cefb07c98" - integrity sha512-xRh0w8uI1jGxg8wF/E3+Xy+pAmwaMmTXn7+4Sx/WGvk5L+ltfG7NZhP6Wt9EcIsbWvuw/bipHIPghp0+Y8JJRw== +projen@^0.58.30: + version "0.58.30" + resolved "https://registry.yarnpkg.com/projen/-/projen-0.58.30.tgz#82e7bb8a4e14db612d1c2565ac3e5a88f1570cdd" + integrity sha512-G5KgswX7GJ0CvufgUznKgjxR05z3UUzTptvN6nuRpA6/sjJEQcoIGociLF4PkYSj9vZOnxE9g0HK/tN7ZRqs3Q== dependencies: "@iarna/toml" "^2.2.5" case "^1.6.3"