From 290beb4651bb0672da5ac7d0eec7fb309a746c61 Mon Sep 17 00:00:00 2001 From: Deyan Kamburov Date: Thu, 24 Apr 2025 14:22:35 +0300 Subject: [PATCH 1/2] ci(*): update branches and ci of the github action --- .github/workflows/node.js.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index b85bed2..bec2e6f 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -5,9 +5,9 @@ name: Node.js CI on: push: - branches: [ master ] + branches: [ "vnext", "master" ] pull_request: - branches: [ master ] + branches: [ "vnext", "master" ] jobs: build: @@ -25,9 +25,8 @@ jobs: uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} - # cache: 'npm' # enable after committing lock file from first install - - run: npm i # replace with 'npm ci' after committing lock file from first install -# - run: npm run lint + cache: 'npm' + - run: npm ci + - run: npm run lint - run: npm run build - - run: npm run test From c458e5a159f15634f6cb8bf6ec944c512dd4feca Mon Sep 17 00:00:00 2001 From: Deyan Kamburov Date: Thu, 24 Apr 2025 14:36:07 +0300 Subject: [PATCH 2/2] ci(*): bump to actions v4 --- .github/workflows/node.js.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index bec2e6f..ceef587 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -20,13 +20,13 @@ jobs: # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: 'npm' - run: npm ci - run: npm run lint - - run: npm run build + - run: npm run build --if-present