Skip to content

Commit

Permalink
fix: update compilation steps to match latest CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
TristanSpeakEasy committed Feb 20, 2024
1 parent f3a38f7 commit e184c62
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/sdk-generation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -361,8 +361,13 @@ jobs:
- uses: actions/setup-go@v3
with:
go-version: ">=1.20.0"
- run: go build ./...
- run: |-
go mod tidy
go build ./...
working-directory: ${{ needs.generate.outputs.go_directory }}
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore: update dependencies"
- uses: ravsamhq/notify-slack-action@v2
if: always() && env.SLACK_WEBHOOK_URL != ''
with:
Expand Down Expand Up @@ -547,10 +552,13 @@ jobs:
node-version: "16.x"
registry-url: "https://registry.npmjs.org"
- run: |-
[[ "${{ inputs.output_tests }}" == "true" ]] && npm install || npm ci --prefer-offline --no-audit
npm install
tsc --noEmit --skipLibCheck
npx eslint --max-warnings=0 src/**
working-directory: ${{ needs.generate.outputs.typescript_directory }}
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore: update dependencies"
- uses: ravsamhq/notify-slack-action@v2
if: always() && env.SLACK_WEBHOOK_URL != ''
with:
Expand Down Expand Up @@ -932,7 +940,7 @@ jobs:
GH_ACTION_VERSION: "v14"
GH_ACTION_STEP: ${{ github.job }}
publish-pypi:
if: ${{ always() && needs.generate.outputs.python_regenerated == 'true' && inputs.publish_python == 'true' && inputs.mode != 'pr' }}
if: ${{ needs.generate.outputs.python_regenerated == 'true' && inputs.publish_python == 'true' && inputs.mode != 'pr' }}
name: Publish Python SDK
runs-on: ubuntu-latest
needs: [generate, compile-python, finalize]
Expand Down Expand Up @@ -987,7 +995,7 @@ jobs:
GH_ACTION_STEP: ${{ github.job }}
TARGET_TYPE: "sdk"
publish-npm:
if: ${{ always() && needs.generate.outputs.typescript_regenerated == 'true' && inputs.publish_typescript == 'true' && inputs.mode != 'pr' }}
if: ${{ needs.generate.outputs.typescript_regenerated == 'true' && inputs.publish_typescript == 'true' && inputs.mode != 'pr' }}
name: Publish Typescript SDK
runs-on: ubuntu-latest
needs: [generate, compile-typescript, finalize]
Expand Down Expand Up @@ -1108,7 +1116,7 @@ jobs:
GH_ACTION_STEP: ${{ github.job }}
TARGET_TYPE: "sdk"
publish-gems:
if: ${{ always() && needs.generate.outputs.ruby_regenerated == 'true' && inputs.publish_ruby == 'true' && inputs.mode != 'pr' }}
if: ${{ needs.generate.outputs.ruby_regenerated == 'true' && inputs.publish_ruby == 'true' && inputs.mode != 'pr' }}
name: Publish Ruby SDK
runs-on: ubuntu-latest
needs: [generate, compile-ruby, finalize]
Expand Down Expand Up @@ -1164,7 +1172,7 @@ jobs:
GH_ACTION_STEP: ${{ github.job }}
TARGET_TYPE: "sdk"
publish-nuget:
if: ${{ always() && needs.generate.outputs.csharp_regenerated == 'true' && inputs.publish_csharp == 'true' && inputs.mode != 'pr' }}
if: ${{ needs.generate.outputs.csharp_regenerated == 'true' && inputs.publish_csharp == 'true' && inputs.mode != 'pr' }}
name: Publish C# SDK
runs-on: ubuntu-latest
needs: [generate, compile-csharp, finalize]
Expand Down Expand Up @@ -1210,7 +1218,7 @@ jobs:
GH_ACTION_STEP: ${{ github.job }}
TARGET_TYPE: "sdk"
publish-packagist:
if: ${{ always() && needs.generate.outputs.php_regenerated == 'true' && inputs.publish_php == 'true' && inputs.mode != 'pr' }}
if: ${{ needs.generate.outputs.php_regenerated == 'true' && inputs.publish_php == 'true' && inputs.mode != 'pr' }}
name: Publish PHP SDK
runs-on: ubuntu-latest
needs: [generate, compile-php, finalize]
Expand Down

0 comments on commit e184c62

Please sign in to comment.