Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/many-planets-talk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@e2b/code-interpreter': patch
---

Fix node version
5 changes: 5 additions & 0 deletions .changeset/rotten-wombats-hide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@e2b/code-interpreter': patch
---

Update core package
6 changes: 3 additions & 3 deletions .github/workflows/js_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
node-version: "20.x"
registry-url: "https://registry.npmjs.org"
cache: pnpm
cache-dependency-path: pnpm-lock.yaml

Expand Down Expand Up @@ -81,4 +81,4 @@ jobs:
env:
E2B_API_KEY: ${{ secrets.E2B_API_KEY }}
E2B_DOMAIN: ${{ vars.E2B_DOMAIN }}
E2B_TESTS_TEMPLATE: ${{ inputs.E2B_TESTS_TEMPLATE }}
E2B_TESTS_TEMPLATE: ${{ inputs.E2B_TESTS_TEMPLATE }}
28 changes: 13 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "18.x"
node-version: "20.x"
registry-url: "https://registry.npmjs.org"
cache: pnpm
cache-dependency-path: pnpm-lock.yaml
Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "18.x"
node-version: "20.x"
registry-url: "https://registry.npmjs.org"
cache: pnpm
cache-dependency-path: pnpm-lock.yaml
Expand Down Expand Up @@ -108,7 +108,6 @@ jobs:
IS_RELEASE=$(./.github/scripts/is_release_for_package.sh "@e2b/code-interpreter-template")
echo "release=$IS_RELEASE" >> "$GITHUB_OUTPUT"


charts-release:
name: Charts release
if: needs.changes.outputs.charts == 'true'
Expand All @@ -128,7 +127,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
python-version: "3.12"

- name: Install and configure Poetry
uses: snok/install-poetry@v1
Expand Down Expand Up @@ -156,7 +155,7 @@ jobs:
poetry build
poetry config pypi-token.pypi ${PYPI_TOKEN}
poetry publish --skip-existing
working-directory: ./chart_data_extractor
working-directory: ./chart_data_extractor
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PYPI_TOKEN: ${{ secrets.CHARTS_PYPI_TOKEN }}
Expand All @@ -165,7 +164,7 @@ jobs:
id: output_version
working-directory: ./chart_data_extractor
run: |
echo "::set-output name=version::$(pnpm pkg get version --workspaces=false | tr -d \\\")"
echo "::set-output name=version::$(pnpm pkg get version --workspaces=false | tr -d \\\")"

build-docker-image:
name: Build Docker Image
Expand Down Expand Up @@ -231,17 +230,17 @@ jobs:
python-tests:
name: Python Tests
needs: [changes, build-template]
if: always() &&
if: always() &&
!contains(needs.*.result, 'failure') &&
!contains(needs.*.result, 'cancelled') &&
!contains(needs.*.result, 'cancelled') &&
needs.changes.outputs.template == 'true'
uses: ./.github/workflows/python_tests.yml
secrets: inherit

js-tests:
name: JS Tests
needs: [changes, build-template]
if: always() &&
if: always() &&
!contains(needs.*.result, 'failure') &&
!contains(needs.*.result, 'cancelled') &&
needs.changes.outputs.template == 'true'
Expand All @@ -250,7 +249,7 @@ jobs:

release:
needs: [python-tests, js-tests]
if: always() &&
if: always() &&
!contains(needs.*.result, 'failure') &&
!contains(needs.*.result, 'cancelled') &&
(needs.changes.outputs.js == 'true' || needs.changes.outputs.python == 'true' || needs.changes.outputs.charts == 'true' || needs.changes.outputs.template == 'true')
Expand All @@ -268,7 +267,6 @@ jobs:
with:
token: ${{ steps.app-token.outputs.token }}


- name: Set up Python
uses: actions/setup-python@v4
with:
Expand All @@ -286,10 +284,10 @@ jobs:
with:
version: 9.5

- name: Setup Node.js 18
- name: Setup Node.js 20
uses: actions/setup-node@v3
with:
node-version: '18.x'
node-version: "20.x"
cache: pnpm

- name: Configure pnpm
Expand All @@ -304,11 +302,11 @@ jobs:
run: pnpm run version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Generate SDK reference
id: sdk-ref
run: pnpm run --recursive generate-ref

- name: Show docs file structure
run: |
if [ -d "./sdk-reference" ]; then
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release_candidates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ jobs:
with:
version: 9.5

- name: Setup Node.js 18
- name: Setup Node.js 20
uses: actions/setup-node@v4
if: ${{ contains( github.event.pull_request.labels.*.name, 'js-rc') }}
with:
node-version: '18.x'
node-version: "20.x"
registry-url: https://registry.npmjs.org
cache: pnpm

Expand Down
12 changes: 6 additions & 6 deletions js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"format": "prettier --write src/ tests/ example.mts"
},
"devDependencies": {
"@types/node": "^18.18.6",
"@types/node": "^20.19.19",
"dotenv": "^16.4.5",
"knip": "^5.25.1",
"npm-check-updates": "^17.1.14",
Expand Down Expand Up @@ -67,13 +67,13 @@
"runtime",
"vm"
],
"dependencies": {
"e2b": "^2.0.1"
},
"engines": {
"node": ">=18"
"node": ">=20"
},
"browserslist": [
"defaults"
]
],
"dependencies": {
"e2b": "^2.2.1"
}
}
Loading