Skip to content

Commit

Permalink
publish attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
cnuss committed Jan 5, 2024
1 parent be1e95d commit 2c90d08
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/push-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: "18"
cache: "yarn"
- uses: actions/cache@v2
with:
path: ./.terraform/providers
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/release-published.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ jobs:
- uses: hashicorp/setup-terraform@v1
with:
terraform_version: "1.0"
- uses: actions/setup-node@v4
with:
node-version: "18"
cache: "yarn"
- uses: actions/cache@v2
with:
path: ./.terraform/providers
Expand All @@ -24,3 +28,9 @@ jobs:
action: postrelease
version-file: package.json
repo-token: ${{ secrets.GITHUB_TOKEN }}
- run: jq -r '.version' package.json | xargs -I {} sed -i 's/@latest/@{}/g' cdktf.json
- run: yarn
- run: yarn codegen
- run: yarn publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 2c90d08

Please sign in to comment.