Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Run release conditionally based on version changes
Tomas Valenta84123567dac3
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 94744ebe3..17ee144de 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -36,12 +36,20 @@ jobs:virtualenvs-in-project: trueinstaller-parallel: true+ - name: Create new versions+ id: version+ run: npm run gh:version+ env:+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}+- name: Install dependencies+ if: steps.version.outputs.changes == 'true'run: npm ci- name: Cache node modulesuses: actions/cache@v3id: cache-modules+ if: steps.version.outputs.changes == 'true'with:path: node_moduleskey: node_modules-${{hashFiles('package-lock.json')}}@@ -49,16 +57,13 @@ jobs:- name: Run testsrun: npm run test+ if: steps.version.outputs.changes == 'true'env:E2B_API_KEY: ${{ secrets.E2B_API_KEY }}- - name: Create new versions- run: npm run version- env:- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}-- name: Release new versionsuses: changesets/action@v1+ if: steps.version.outputs.changes == 'true'with:publish: npm run publishenv:@@ -67,6 +72,7 @@ jobs:PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}- name: Commit new versions+ if: steps.version.outputs.changes == 'true'run: |git config user.name "github-actions[bot]"git config user.email "github-actions[bot]@users.noreply.github.com"