|
36 | 36 | pnpm config set auto-install-peers true
|
37 | 37 | pnpm config set exclude-links-from-lockfile true
|
38 | 38 |
|
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 }} |
70 | 39 |
|
71 | 40 | - name: Set up Python
|
72 | 41 | uses: actions/setup-python@v4
|
@@ -102,6 +71,38 @@ jobs:
|
102 | 71 | env:
|
103 | 72 | PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
|
104 | 73 |
|
| 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 | + |
105 | 106 | - name: Commit new versions
|
106 | 107 | 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') }}
|
107 | 108 | run: |
|
|
0 commit comments