@@ -54,40 +54,52 @@ jobs:
54
54
if : needs.is_release.outputs.release == 'true'
55
55
runs-on : ubuntu-latest
56
56
outputs :
57
- js-sdk : ${{ steps.filter .outputs.js-sdk }}
58
- python-sdk : ${{ steps.filter .outputs.python-sdk }}
59
- cli : ${{ steps.filter .outputs.cli }}
57
+ js-sdk : ${{ steps.js .outputs.release }}
58
+ python-sdk : ${{ steps.python .outputs.release }}
59
+ cli : ${{ steps.cli .outputs.release }}
60
60
steps :
61
- - name : Checkout repository
61
+ - name : Checkout Repo
62
62
uses : actions/checkout@v3
63
- with :
64
- fetch-depth : 0
65
63
66
- - name : Get the last release
67
- id : last_release
68
- uses : cardinalby/git-get-release-action@v1
69
- env :
70
- GITHUB_TOKEN : ${{ github.token }}
64
+ - name : Install pnpm
65
+ uses : pnpm/action-setup@v3
66
+ id : pnpm-install
71
67
with :
72
- latest : true
73
- prerelease : false
74
- draft : false
68
+ version : 9.5
75
69
76
- - name : Find changes since the last release
77
- uses : dorny/paths-filter@v2
78
- id : filter
70
+ - name : Setup Node
71
+ uses : actions/setup-node@v3
79
72
with :
80
- base : ${{ steps.last_release.outputs.tag_name }}
81
- filters : |
82
- js-sdk:
83
- - 'packages/js-sdk/src/**'
84
- - '.github/workflows/js_sdk_tests.yml'
85
- python-sdk:
86
- - 'packages/python-sdk/e2b/**'
87
- - '.github/workflows/python_sdk_tests.yml'
88
- cli:
89
- - 'packages/cli/src/**'
90
- - '.github/workflows/cli_tests.yml'
73
+ node-version : " 18.x"
74
+ registry-url : " https://registry.npmjs.org"
75
+ cache : pnpm
76
+ cache-dependency-path : pnpm-lock.yaml
77
+
78
+ - name : Configure pnpm
79
+ run : |
80
+ pnpm config set auto-install-peers true
81
+ pnpm config set exclude-links-from-lockfile true
82
+
83
+ - name : Install dependencies
84
+ run : pnpm install --frozen-lockfile
85
+
86
+ - name : Check JavasScript SDK Release
87
+ id : js
88
+ run : |
89
+ IS_RELEASE=$(./.github/scripts/is_release_for_package.sh "e2b")
90
+ echo "release=$IS_RELEASE" >> "$GITHUB_OUTPUT"
91
+
92
+ - name : Check Python SDK Release
93
+ id : python
94
+ run : |
95
+ IS_RELEASE=$(./.github/scripts/is_release_for_package.sh "@e2b/python-sdk")
96
+ echo "release=$IS_RELEASE" >> "$GITHUB_OUTPUT"
97
+
98
+ - name : Check CLI Release
99
+ id : cli
100
+ run : |
101
+ IS_RELEASE=$(./.github/scripts/is_release_for_package.sh "@e2b/cli")
102
+ echo "release=$IS_RELEASE" >> "$GITHUB_OUTPUT"
91
103
92
104
python-tests :
93
105
name : Python SDK Tests
0 commit comments