Skip to content

Commit 1593afa

Browse files
chore: Update build and start commands in node.js.yml workflow
1 parent 70a62d1 commit 1593afa

File tree

1 file changed

+14
-24
lines changed

1 file changed

+14
-24
lines changed

.github/workflows/node.js.yml

Lines changed: 14 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,39 +2,29 @@ name: Node.js CI
22

33
on:
44
push:
5-
branches: [ "main", "dev" ]
5+
branches: ["main", "dev"]
66
pull_request:
7-
branches: [ "main", "dev" ]
7+
branches: ["main", "dev"]
88

99
jobs:
1010
build:
11-
1211
runs-on: ubuntu-latest
1312
strategy:
1413
matrix:
1514
node-version: [16.x, 18.x, 20.x, 22.x]
1615

1716
steps:
18-
- uses: actions/checkout@v4
19-
- name: Use Node.js ${{ matrix.node-version }}
20-
uses: actions/setup-node@v4
21-
with:
22-
node-version: ${{ matrix.node-version }}
17+
- uses: actions/checkout@v4
18+
- name: Use Node.js ${{ matrix.node-version }}
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: ${{ matrix.node-version }}
22+
23+
- name: Install
24+
run: npm install
2325

24-
- name: Install Dependencies
25-
run: npm install
26+
- name: Start
27+
run: npm start
2628

27-
- name: Verify and Start
28-
run: |
29-
npm start > start.log 2>&1 &
30-
START_PID=$!
31-
sleep 5
32-
if grep -q "config.json file does not exist. Read the installation/setup instructions." start.log; then
33-
echo "Build and start completed successfully!"
34-
kill $START_PID
35-
exit 0
36-
else
37-
echo "An unexpected error occurred!"
38-
fi
39-
kill $START_PID
40-
exit 1
29+
- name: Verify
30+
run: echo "Build completed successfully!"

0 commit comments

Comments
 (0)