Skip to content

Commit

Permalink
update yupescript version using package
Browse files Browse the repository at this point in the history
  • Loading branch information
vaibhavsingh97 committed May 11, 2023
1 parent 5fc11b1 commit 86d37f3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/type-declaration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,18 @@ jobs:
strategy:
matrix:
node-version: [18.x]
typescript-version: [3.9, 4.3, 4.4, 4.5, 4.6, 4.7, 4.8, 4.9, 5.0]
typescript-version: [${{ steps.get_typescript_version.outputs.version }}]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Get TypeScript Version
id: get_typescript_version
run: |
npm install --save-dev @definitelytyped/typescript-versions
echo "::set-output name=version::$(node -p 'require("@definitelytyped/typescript-versions").TypeScriptVersion.shipped')"
- name: Install TypeScript
run: npm install -g typescript@${{ matrix.typescript-version }}
- name: Install Dependencies
Expand Down

0 comments on commit 86d37f3

Please sign in to comment.