diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5bc4590..dd6a030 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,12 +7,12 @@ on: branches: [ "main" ] jobs: - build: + build-latest: runs-on: ubuntu-latest strategy: matrix: - node-version: [16.x, 18.x, 20.x] + node-version: [20.x] steps: - uses: actions/checkout@v3 @@ -33,3 +33,23 @@ jobs: name: artifacts_node${{ matrix.node-version }} path: | dist + + build-others: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [16.x, 18.x] + + steps: + - uses: actions/checkout@v3 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + + - name: Build + run: | + npm i + npm run build