Skip to content

Commit 8f3d76b

Browse files
committed
ci(workflows): [ci] make typescript matrix dynamic
- https://blog.aspect.dev/github-actions-dynamic-matrix Signed-off-by: Lexus Drumgold <[email protected]>
1 parent 46130b7 commit 8f3d76b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ jobs:
5050
runs-on: ubuntu-latest
5151
outputs:
5252
version: ${{ steps.version.outputs.result }}
53+
version-typescript: ${{ steps.version-typescript.outputs.result }}
5354
steps:
5455
- id: debug
5556
name: Print environment variables and event payload
@@ -78,6 +79,9 @@ jobs:
7879
- id: version
7980
name: Get package version
8081
run: echo "result=$(jq .version package.json -r)" >> $GITHUB_OUTPUT
82+
- id: version-typescript
83+
name: Get TypeScript version
84+
run: echo "result=$(jq .devDependencies.typescript package.json -r)" >> $GITHUB_OUTPUT
8185
format:
8286
needs: metadata
8387
runs-on: ubuntu-latest
@@ -160,6 +164,7 @@ jobs:
160164
fail-fast: false
161165
matrix:
162166
typescript-version:
167+
- ${{ needs.metadata.outputs.version-typescript }}
163168
- latest
164169
- ~4.9.0
165170
steps:

0 commit comments

Comments
 (0)