Skip to content

Commit

Permalink
ci(workflows): [ci] make typescript matrix dynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
unicornware committed Jan 31, 2023
1 parent 5e9924f commit 07a70ab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.version.outputs.result }}
version-typescript: ${{ steps.version-typescript.outputs.result }}
steps:
- id: debug
name: Print environment variables and event payload
Expand Down Expand Up @@ -76,6 +77,9 @@ jobs:
- id: version
name: Get package version
run: echo "result=$(jq .version package.json -r)" >> $GITHUB_OUTPUT
- id: version-typescript
name: Get TypeScript version
run: echo "result=$(jq .devDependencies.typescript package.json -r)" >> $GITHUB_OUTPUT
format:
needs: metadata
runs-on: ubuntu-latest
Expand Down Expand Up @@ -158,6 +162,7 @@ jobs:
fail-fast: false
matrix:
typescript-version:
- ${{ needs.metadata.outputs.version-typescript }}
- latest
- ~4.9.0
- ~4.8.0
Expand Down

0 comments on commit 07a70ab

Please sign in to comment.