Skip to content

Commit 68f6b79

Browse files
committed
[skip ci] Return the release logic
1 parent 8d8591c commit 68f6b79

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/release_candidates.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,40 @@ jobs:
1919
with:
2020
ref: ${{ github.head_ref }}
2121

22+
- uses: pnpm/action-setup@v3
23+
with:
24+
version: 9.5
25+
26+
- name: Setup Node.js 18
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: '18.x'
30+
registry-url: https://registry.npmjs.org
31+
cache: pnpm
32+
33+
- name: Configure pnpm
34+
run: |
35+
pnpm config set auto-install-peers true
36+
pnpm config set exclude-links-from-lockfile true
37+
38+
- name: Install dependencies
39+
run: pnpm install --frozen-lockfile
40+
41+
- name: Test JS SDK
42+
working-directory: js
43+
run: |
44+
pnpm run test
45+
env:
46+
E2B_API_KEY: ${{ secrets.E2B_API_KEY }}
47+
48+
- name: Release JS Candidate
49+
working-directory: js
50+
run: |
51+
npm version prerelease --preid=beta
52+
npm publish --tag beta
53+
env:
54+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
55+
2256
- name: Set up Python
2357
uses: actions/setup-python@v4
2458
with:
@@ -43,6 +77,7 @@ jobs:
4377
- name: Release Candidate
4478
working-directory: python
4579
run: |
80+
poetry version prerelease
4681
poetry build
4782
poetry config pypi-token.pypi ${PYPI_TOKEN} && poetry publish --skip-existing
4883
env:

0 commit comments

Comments
 (0)