23
23
fdiVersions : ${{ steps.versions.outputs.fdiVersions }}
24
24
cdiVersions : ${{ steps.versions.outputs.cdiVersions }}
25
25
pyVersions : ' ["3.8", "3.13"]'
26
+ nodeFdiVersionMap : ${{ steps.node-versions.outputs.fdiVersions }}
27
+ authReactFdiVersionMap : ${{ steps.auth-react-versions.outputs.fdiVersions }}
26
28
steps :
27
29
- uses : actions/checkout@v4
28
30
32
34
has-fdi : true
33
35
has-cdi : true
34
36
37
+ - uses : supertokens/actions/get-versions-from-repo@main
38
+ id : auth-react-versions
39
+ with :
40
+ repo : supertokens-auth-react
41
+ github-token : ${{ secrets.GITHUB_TOKEN }}
42
+ fdi-versions : ${{ steps.versions.outputs.fdiVersions }}
43
+
44
+ - uses : supertokens/actions/get-versions-from-repo@main
45
+ id : node-versions
46
+ with :
47
+ repo : supertokens-node
48
+ github-token : ${{ secrets.GITHUB_TOKEN }}
49
+ fdi-versions : ${{ steps.versions.outputs.fdiVersions }}
50
+
35
51
setup-auth-react :
36
52
runs-on : ubuntu-latest
37
53
needs : define-versions
@@ -51,19 +67,20 @@ jobs:
51
67
matrix : ${{ steps.setup-matrix.outputs.matrix }}
52
68
53
69
steps :
54
- - uses : supertokens/get- versions-action@main
70
+ - name : Get node and auth-react versions for FDI
55
71
id : versions
56
- with :
57
- driver-name : python
58
- fdi-version : ${{ matrix.fdi-version }}
59
- env :
60
- SUPERTOKENS_API_KEY : ${{ secrets.SUPERTOKENS_API_KEY }}
72
+ run : |
73
+ nodeVersion=$( echo '${{ needs.define-versions.outputs.nodeFdiVersionMap }}' | jq -r '.["${{ matrix.fdi-version }}"]' )
74
+ authReactVersion=$( echo '${{ needs.define-versions.outputs.authReactFdiVersionMap }}' | jq -r '.["${{ matrix.fdi-version }}"]' )
75
+
76
+ echo "nodeVersion=${nodeVersion}" >> $GITHUB_OUTPUT
77
+ echo "authReactVersion=${authReactVersion}" >> $GITHUB_OUTPUT
61
78
62
79
- uses : supertokens/auth-react-testing-action/setup@main
63
80
id : envs
64
81
with :
65
- auth-react-version : ${{ steps.versions.outputs.authReactVersionXy }}
66
- node-sdk-version : ${{ steps.versions.outputs.nodeTag }}
82
+ auth-react-version : ${{ steps.versions.outputs.authReactVersion }}
83
+ node-sdk-version : ${{ steps.versions.outputs.nodeVersion }}
67
84
fdi-version : ${{ matrix.fdi-version }}
68
85
69
86
- id : setup-matrix
0 commit comments