diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 77bc3cf..8e0c1f8 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -53,3 +53,18 @@ jobs: cache: 'npm' - run: npm i - run: npm run build:package + build-types: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [ 16.x, 18.x ] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - run: npm i + - run: npm run build:types