during sdk release check not just source code but dep files #8
Workflow file for this run
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: Show Release Outputs | |
| on: | |
| pull_request: | |
| jobs: | |
| is_release: | |
| name: Is release? | |
| runs-on: ubuntu-latest | |
| outputs: | |
| release: ${{ steps.version.outputs.release }} | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@v3 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v3 | |
| id: pnpm-install | |
| with: | |
| version: 9.5 | |
| - name: Setup Node | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: "18.x" | |
| registry-url: "https://registry.npmjs.org" | |
| cache: pnpm | |
| cache-dependency-path: pnpm-lock.yaml | |
| - name: Configure pnpm | |
| run: | | |
| pnpm config set auto-install-peers true | |
| pnpm config set exclude-links-from-lockfile true | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Check if new version | |
| id: version | |
| run: | | |
| IS_RELEASE=$(./.github/scripts/is_release.sh) | |
| echo "release=$IS_RELEASE" >> "$GITHUB_OUTPUT" | |
| changes: | |
| name: Repository changes | |
| needs: [is_release] | |
| if: needs.is_release.outputs.release == 'true' | |
| runs-on: ubuntu-latest | |
| outputs: | |
| js: ${{ steps.js.outputs.release }} | |
| python: ${{ steps.python.outputs.release }} | |
| charts: ${{ steps.charts.outputs.release }} | |
| template: ${{ steps.template.outputs.release }} | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@v3 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v3 | |
| id: pnpm-install | |
| with: | |
| version: 9.5 | |
| - name: Setup Node | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: "18.x" | |
| registry-url: "https://registry.npmjs.org" | |
| cache: pnpm | |
| cache-dependency-path: pnpm-lock.yaml | |
| - name: Configure pnpm | |
| run: | | |
| pnpm config set auto-install-peers true | |
| pnpm config set exclude-links-from-lockfile true | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Check JavasScript SDK Release | |
| id: js | |
| run: | | |
| IS_RELEASE=$(./.github/scripts/is_release_for_package.sh "@e2b/code-interpreter") | |
| echo "release=$IS_RELEASE" >> "$GITHUB_OUTPUT" | |
| - name: Check Python SDK Release | |
| id: python | |
| run: | | |
| IS_RELEASE=$(./.github/scripts/is_release_for_package.sh "@e2b/code-interpreter-python") | |
| echo "release=$IS_RELEASE" >> "$GITHUB_OUTPUT" | |
| - name: Check Charts SDK Release | |
| id: charts | |
| run: | | |
| IS_RELEASE=$(./.github/scripts/is_release_for_package.sh "@e2b/data-extractor") | |
| echo "release=$IS_RELEASE" >> "$GITHUB_OUTPUT" | |
| - name: Check Template SDK Release | |
| id: template | |
| run: | | |
| IS_RELEASE=$(./.github/scripts/is_release_for_package.sh "@e2b/code-interpreter-template") | |
| echo "release=$IS_RELEASE" >> "$GITHUB_OUTPUT" | |
| changes_print: | |
| name: Print changes | |
| needs: [changes] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Print outputs | |
| run: | | |
| echo "JS Release: ${{ needs.changes.outputs.js }}" | |
| echo "Python Release: ${{ needs.changes.outputs.python }}" | |
| echo "Charts Release: ${{ needs.changes.outputs.charts }}" | |
| echo "Template Release: ${{ needs.changes.outputs.template }}" |