From 4e7cb397e555b16a99188ae0fdab2faef5bbc995 Mon Sep 17 00:00:00 2001 From: joneff Date: Wed, 14 Jun 2023 15:00:57 +0300 Subject: [PATCH] ci: add id field to setup node action --- .github/workflows/_build.yml | 7 ++++++- .github/workflows/_lint-scripts.yml | 1 + .github/workflows/_unit-tests.yml | 1 + .github/workflows/publish_npm.yml | 6 ++++++ 4 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/_build.yml b/.github/workflows/_build.yml index a743cb6..39b3c19 100644 --- a/.github/workflows/_build.yml +++ b/.github/workflows/_build.yml @@ -13,15 +13,20 @@ jobs: run: runs-on: ubuntu-latest + strategy: + matrix: + node-version: [16.x, 18.x] + steps: - name: Checkout branch uses: actions/checkout@v3 - name: Setup node + id: setup-node uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: ${{ matrix.node-version }} - name: Use cache for root node_modules id: cache-root-node_modules diff --git a/.github/workflows/_lint-scripts.yml b/.github/workflows/_lint-scripts.yml index 9756aff..77294f8 100644 --- a/.github/workflows/_lint-scripts.yml +++ b/.github/workflows/_lint-scripts.yml @@ -19,6 +19,7 @@ jobs: uses: actions/checkout@v3 - name: Setup node + id: setup-node uses: actions/setup-node@v3 with: node-version: 16.x diff --git a/.github/workflows/_unit-tests.yml b/.github/workflows/_unit-tests.yml index 1cf36ff..6aa20ae 100644 --- a/.github/workflows/_unit-tests.yml +++ b/.github/workflows/_unit-tests.yml @@ -23,6 +23,7 @@ jobs: uses: actions/checkout@v3 - name: Setup node + id: setup-node uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} diff --git a/.github/workflows/publish_npm.yml b/.github/workflows/publish_npm.yml index 4b9605b..33c5bf6 100644 --- a/.github/workflows/publish_npm.yml +++ b/.github/workflows/publish_npm.yml @@ -21,6 +21,12 @@ jobs: git reset --hard origin/master git merge --ff-only --quiet origin/develop + - name: Setup node + id: setup-node + uses: actions/setup-node@v3 + with: + node-version: 16.x + - name: Use cache for root node_modules id: cache-root-node_modules uses: actions/cache@v3