Skip to content

Commit bcea20f

Browse files
committed
Start tests with python
1 parent 7e77475 commit bcea20f

File tree

2 files changed

+33
-32
lines changed

2 files changed

+33
-32
lines changed

.github/workflows/release_candidates.yml

Lines changed: 32 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -36,37 +36,6 @@ jobs:
3636
pnpm config set auto-install-peers true
3737
pnpm config set exclude-links-from-lockfile true
3838
39-
- name: Install dependencies
40-
if: ${{ contains( github.event.pull_request.labels.*.name, 'js-rc') || contains( github.event.pull_request.labels.*.name, 'cli-rc') }}
41-
run: |
42-
pnpm install --frozen-lockfile
43-
44-
- name: Test JS SDK
45-
working-directory: packages/js-sdk
46-
if: ${{ contains( github.event.pull_request.labels.*.name, 'js-rc') }}
47-
run: |
48-
npx playwright install --with-deps
49-
pnpm run test
50-
env:
51-
E2B_API_KEY: ${{ secrets.E2B_API_KEY }}
52-
53-
- name: Release JS Candidate
54-
working-directory: packages/js-sdk
55-
if: ${{ contains( github.event.pull_request.labels.*.name, 'js-rc') }}
56-
run: |
57-
npm version prerelease --preid=${{ github.head_ref }}
58-
npm publish --tag rc
59-
env:
60-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
61-
62-
- name: Release CLI Candidate
63-
working-directory: packages/cli
64-
if: ${{ contains( github.event.pull_request.labels.*.name, 'cli-rc') }}
65-
run: |
66-
npm version prerelease --preid=${{ github.head_ref }}
67-
npm publish --tag rc
68-
env:
69-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
7039
7140
- name: Set up Python
7241
uses: actions/setup-python@v4
@@ -102,6 +71,38 @@ jobs:
10271
env:
10372
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
10473

74+
- name: Install dependencies
75+
if: ${{ contains( github.event.pull_request.labels.*.name, 'js-rc') || contains( github.event.pull_request.labels.*.name, 'cli-rc') }}
76+
run: |
77+
pnpm install --frozen-lockfile
78+
79+
- name: Test JS SDK
80+
working-directory: packages/js-sdk
81+
if: ${{ contains( github.event.pull_request.labels.*.name, 'js-rc') }}
82+
run: |
83+
npx playwright install --with-deps
84+
pnpm run test
85+
env:
86+
E2B_API_KEY: ${{ secrets.E2B_API_KEY }}
87+
88+
- name: Release JS Candidate
89+
working-directory: packages/js-sdk
90+
if: ${{ contains( github.event.pull_request.labels.*.name, 'js-rc') }}
91+
run: |
92+
npm version prerelease --preid=${{ github.head_ref }}
93+
npm publish --tag rc
94+
env:
95+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
96+
97+
- name: Release CLI Candidate
98+
working-directory: packages/cli
99+
if: ${{ contains( github.event.pull_request.labels.*.name, 'cli-rc') }}
100+
run: |
101+
npm version prerelease --preid=${{ github.head_ref }}
102+
npm publish --tag rc
103+
env:
104+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
105+
105106
- name: Commit new versions
106107
if: ${{ contains( github.event.pull_request.labels.*.name, 'js-rc') || contains( github.event.pull_request.labels.*.name, 'cli-rc') || contains( github.event.pull_request.labels.*.name, 'python-rc') }}
107108
run: |

packages/js-sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "e2b",
3-
"version": "0.16.2-beta.53",
3+
"version": "0.16.2-beta.54",
44
"description": "E2B SDK that give agents cloud environments",
55
"homepage": "https://e2b.dev",
66
"license": "MIT",

0 commit comments

Comments
 (0)