From 8ad7b3ff706b465945dc61d3b7567580c86ec81a Mon Sep 17 00:00:00 2001 From: Himanshu Gupta Date: Mon, 26 Feb 2024 10:32:18 +0530 Subject: [PATCH] Update publish.yml --- .github/workflows/publish.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 322a91b..a7d30c7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -30,7 +30,13 @@ jobs: - run: npm test publish: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + + strategy: + matrix: + node-version: [21.6.1] + os: [ubuntu-latest] + if: ${{ github.ref == 'refs/heads/main' }} needs: [quality] steps: