Skip to content

Commit a4338a2

Browse files
authored
Merge pull request #12 from IgniteUI/dkamburov/gh-workflow
ci(*): update branches and ci of the github action
2 parents c2e2a54 + c458e5a commit a4338a2

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/node.js.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ name: Node.js CI
55

66
on:
77
push:
8-
branches: [ master ]
8+
branches: [ "vnext", "master" ]
99
pull_request:
10-
branches: [ master ]
10+
branches: [ "vnext", "master" ]
1111

1212
jobs:
1313
build:
@@ -20,14 +20,13 @@ jobs:
2020
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
2121

2222
steps:
23-
- uses: actions/checkout@v2
23+
- uses: actions/checkout@v4
2424
- name: Use Node.js ${{ matrix.node-version }}
25-
uses: actions/setup-node@v2
25+
uses: actions/setup-node@v4
2626
with:
2727
node-version: ${{ matrix.node-version }}
28-
# cache: 'npm' # enable after committing lock file from first install
29-
- run: npm i # replace with 'npm ci' after committing lock file from first install
30-
# - run: npm run lint
31-
- run: npm run build
32-
- run: npm run test
28+
cache: 'npm'
29+
- run: npm ci
30+
- run: npm run lint
31+
- run: npm run build --if-present
3332

0 commit comments

Comments
 (0)