create-sdk-releases #97
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: create-sdk-releases | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| bump_type: | |
| description: 'The type of version bump to make' | |
| required: true | |
| type: choice | |
| options: | |
| - 'major' | |
| - 'minor' | |
| - 'patch' | |
| language: | |
| description: 'If you want to just release a specific language' | |
| type: choice | |
| options: | |
| - 'all' | |
| - 'go' | |
| - 'java' | |
| - 'python' | |
| - 'typescript' | |
| version: | |
| description: 'Set a specific version to release (disables "all" for language)' | |
| required: false | |
| type: string | |
| jobs: | |
| run: | |
| if: vars.IS_PUBLIC_REPO == 'true' | |
| runs-on: ubuntu-latest | |
| environment: sdk-release | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v2 | |
| with: | |
| version: 8 | |
| - name: Install Dependencies | |
| shell: bash | |
| run: pnpm install | |
| - name: Run snippet tests | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| GITHUB_OWNER: ${{ github.repository_owner }} | |
| GITHUB_REPO: ${{ github.event.repository.name }} | |
| BUMP_TYPE: ${{ github.event.inputs.bump_type }} | |
| LANGUAGE: ${{ github.event.inputs.language }} | |
| VERSION: ${{ github.event.inputs.version }} | |
| FERN_TOKEN: ${{ secrets.FERN_TOKEN }} | |
| PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} | |
| MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} | |
| MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} | |
| MAVEN_CENTRAL_SECRET_KEY_KEY_ID: ${{ secrets.MAVEN_CENTRAL_SECRET_KEY_KEY_ID }} | |
| MAVEN_CENTRAL_SECRET_KEY_PASSWORD: ${{ secrets.MAVEN_CENTRAL_SECRET_KEY_PASSWORD }} | |
| MAVEN_CENTRAL_SECRET_KEY: ${{ secrets.MAVEN_CENTRAL_SECRET_KEY }} | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| run: pnpm run --filter autorelease release |