Skip to content

Commit 6022f33

Browse files
committed
include generate sdk workflow inside release workflow, make pnpm recursive work and change version
1 parent ccfcd33 commit 6022f33

File tree

9 files changed

+231
-318
lines changed

9 files changed

+231
-318
lines changed

.changeset/stale-turtles-repeat.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@e2b/code-interpreter-python': patch
3+
---
4+
5+
bump e2b package

.github/workflows/generate_sdk_ref.yml

Lines changed: 0 additions & 106 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
branches:
66
- main
7+
# Remove after testing
8+
- generate-api-reference-for-code-interpreter-sdk-e2b-1235
79

810
concurrency: ${{ github.workflow }}-${{ github.ref }}
911

@@ -296,6 +298,13 @@ jobs:
296298
run: pnpm run version
297299
env:
298300
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
301+
302+
- name: Generate SDK reference
303+
id: sdk-ref
304+
run: pnpm run --recursive generate-ref
305+
306+
- name: Show docs file structure
307+
run: tree ./sdk-reference
299308

300309
- name: Release new versions
301310
uses: changesets/action@v1
@@ -313,7 +322,8 @@ jobs:
313322
- name: Commit new versions
314323
run: |
315324
git config user.name "github-actions[bot]"
316-
git config user.email "github-actions[bot]@users.noreply.github.com"
325+
git config user.email "github-actions[bot]@users.noreply.github.com"
326+
git add ./sdk-reference
317327
git commit -am "[skip ci] Release new versions" || exit 0
318328
git push
319329
env:

js/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@e2b/code-interpreter",
33
"version": "1.0.4",
4+
"packageManager": "[email protected]",
45
"description": "E2B Code Interpreter - Stateful code execution",
56
"homepage": "https://e2b.dev",
67
"license": "MIT",
@@ -32,7 +33,8 @@
3233
"update-deps": "ncu -u && pnpm i",
3334
"example": "npx tsx example.mts",
3435
"test:bun": "bun test tests/runtimes/bun --env-file=.env",
35-
"test:deno": "deno test tests/runtimes/deno/ --allow-net --allow-read --allow-env --unstable-sloppy-imports --trace-leaks"
36+
"test:deno": "deno test tests/runtimes/deno/ --allow-net --allow-read --allow-env --unstable-sloppy-imports --trace-leaks",
37+
"generate-ref": "./scripts/generate_sdk_ref.sh"
3638
},
3739
"devDependencies": {
3840
"@types/node": "^18.18.6",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
"changeset": "^0.2.6"
1414
},
1515
"engines": {
16-
"pnpm": ">=9.0.0 <10"
16+
"pnpm": ">=9.0.0 <10"
1717
}
1818
}

python/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22
"name": "@e2b/code-interpreter-python",
33
"private": true,
44
"version": "1.0.1",
5+
"packageManager": "[email protected]",
56
"scripts": {
67
"test": "poetry run pytest -n 4 --verbose -x",
78
"example": "poetry run python3 example.py",
89
"async-example": "poetry run python3 async_example.py",
910
"postVersion": "poetry version $(pnpm pkg get version --workspaces=false | tr -d \\\")",
1011
"postPublish": "poetry build && poetry config pypi-token.pypi ${PYPI_TOKEN} && poetry publish --skip-existing",
11-
"pretest": "poetry install"
12+
"pretest": "poetry install",
13+
"generate-ref": "poetry install && ./scripts/generate_api_ref.sh"
1214
}
13-
}
15+
}

python/poetry.lock

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ python = "^3.8"
1414

1515
httpx = ">=0.20.0,<0.28.0"
1616
attrs = ">=21.3.0"
17-
e2b = "^1.0.0"
17+
e2b = "^1.0.4"
1818

1919
[tool.poetry.group.dev.dependencies]
2020
pytest = "^7.4.0"

0 commit comments

Comments
 (0)