Skip to content

Commit 39b6794

Browse files
committed
fixx err
1 parent 85d24f2 commit 39b6794

File tree

1 file changed

+19
-26
lines changed

1 file changed

+19
-26
lines changed

.github/workflows/main.yml

Lines changed: 19 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,34 @@
1-
# This is a basic workflow to help you get started with Actions
2-
name: CI-CD
1+
name: Check and Build
32

4-
# Controls when the action will run.
53
on:
6-
# Triggers the workflow on push or pull request events but only for the main branch
74
push:
8-
branches: [main,develop]
5+
branches:
6+
- main
7+
- develop
98
pull_request:
10-
branches: [main,develop]
11-
# # Allows you to run this workflow manually from the Actions tab
12-
# workflow_dispatch:
9+
branches:
10+
- main
11+
- develop
12+
workflow_dispatch:
1313

14-
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1514
jobs:
16-
# This workflow contains multiple jobs
17-
build_test:
18-
# The type of runner that the job will run on
15+
build:
1916
runs-on: ubuntu-latest
2017
strategy:
2118
matrix:
22-
node-version: [14.x]
23-
24-
# Steps represent a sequence of tasks that will be executed as part of the job
19+
node-version: [16.x]
2520
steps:
26-
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
27-
- uses: actions/checkout@v2
21+
- name: Checkout repository
22+
uses: actions/checkout@v4
2823

29-
- name: setup node
30-
uses: actions/setup-node@master
24+
- name: Setup Node.js
25+
uses: actions/setup-node@v4
3126
with:
3227
node-version: ${{ matrix.node-version }}
3328

34-
# install applicaion dependencies
3529
- name: Install dependencies
36-
run: |
37-
npm install
38-
# build and test the apps
39-
- name: build
40-
run: |
41-
npm run build
30+
run: npm install
31+
32+
- name: Build
33+
run: npm run build
34+

0 commit comments

Comments
 (0)