@@ -21,13 +21,22 @@ jobs:
2121 runs-on : ubuntu-latest
2222 outputs :
2323 fdiVersions : ${{ steps.versions.outputs.fdiVersions }}
24+
25+ nodeFdiVersionMap : ${{ steps.node-versions.outputs.fdiVersions }}
2426 steps :
2527 - uses : actions/checkout@v4
2628 - uses : supertokens/get-supported-versions-action@main
2729 id : versions
2830 with :
2931 has-fdi : true
3032
33+ - uses : supertokens/actions/get-versions-from-repo@main
34+ id : node-versions
35+ with :
36+ repo : supertokens-node
37+ github-token : ${{ secrets.GITHUB_TOKEN }}
38+ fdi-versions : ${{ steps.versions.outputs.fdiVersions }}
39+
3140 setup-auth-react :
3241 runs-on : ubuntu-latest
3342 needs : define-versions
@@ -45,21 +54,26 @@ jobs:
4554 AUTH_REACT__PORT : ${{ steps.envs.outputs.AUTH_REACT__PORT }}
4655 specs : ${{ steps.envs.outputs.specs }}
4756 fdiVersions : ${{ needs.define-versions.outputs.fdiVersions }}
57+ nodeFdiVersionMap : ${{ needs.define-versions.outputs.nodeFdiVersionMap }}
4858
4959 steps :
50- - uses : supertokens/get-versions-action@main
51- id : versions
60+ - id : repo-versions
61+ run : |
62+ nodeVersion=$( echo '${{ needs.define-versions.outputs.nodeFdiVersionMap }}' | jq -r '.["${{ matrix.fdi-version }}"]' )
63+ echo "nodeVersion=${nodeVersion}" >> $GITHUB_OUTPUT
64+
65+ # We will use this in the test run to get the core version
66+ - uses : actions/checkout@v4
5267 with :
53- driver-name : node
54- fdi-version : ${{ matrix.fdi-version }}
55- env :
56- SUPERTOKENS_API_KEY : ${{ secrets.SUPERTOKENS_API_KEY }}
68+ repository : supertokens/supertokens-node
69+ ref : ${{ steps.repo-versions.outputs.nodeVersion }}
70+ path : supertokens-node
5771
5872 - uses : supertokens/auth-react-testing-action/setup@main
5973 id : envs
6074 with :
6175 auth-react-version : ${{ github.sha }}
62- node-sdk-version : ${{ steps.versions.outputs.nodeTag }}
76+ node-sdk-version : ${{ steps.repo- versions.outputs.nodeVersion }}
6377 fdi-version : ${{ matrix.fdi-version }}
6478 use-common-app-and-test-server : " true"
6579
0 commit comments