Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Switch back to unconditional releasing

Tomas Valentaf104747510eb
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 17ee144de..94744ebe3 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -36,20 +36,12 @@ jobs:
virtualenvs-in-project: true
installer-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 modules
uses: actions/cache@v3
id: cache-modules
- if: steps.version.outputs.changes == 'true'
with:
path: node_modules
key: node_modules-${{hashFiles('package-lock.json')}}
@@ -57,13 +49,16 @@ jobs:
- name: Run tests
run: 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 versions
uses: changesets/action@v1
- if: steps.version.outputs.changes == 'true'
with:
publish: npm run publish
env:
@@ -72,7 +67,6 @@ 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"
diff --git a/package.json b/package.json
index aa96b59eb..7d7a37a09 100644
--- a/package.json
+++ b/package.json
@@ -3,7 +3,6 @@
"main": "index.js",
"private": true,
"scripts": {
- "gh:version": "echo \"name=$(npx changeset version 2>&1 | grep -q 'No unreleased changesets found' && echo 'false' || echo 'true')\" >> $GITHUB_OUTPUT && npm run postVersion --workspaces --if-present",
"version": "changeset version && npm run postVersion --workspaces --if-present",
"publish": "changeset publish && npm run postPublish --workspaces --if-present",
"test": "npm run test --workspaces --if-present"