File tree Expand file tree Collapse file tree 1 file changed +5
-21
lines changed
Expand file tree Collapse file tree 1 file changed +5
-21
lines changed Original file line number Diff line number Diff line change @@ -3,40 +3,24 @@ name: Build on PR
33on :
44 pull_request :
55 branches :
6- - main
6+ - master
77
88jobs :
99 build :
1010 runs-on : ubuntu-latest
1111 steps :
1212 - uses : actions/checkout@v3
13- name : Checkout code
1413
15- - name : Set up Node.js
14+ - name : Use Node.js
1615 uses : actions/setup-node@v3
1716 with :
18- node-version : ' 20'
19-
20- - name : Cache node_modules
21- uses : actions/cache@v3
22- with :
23- path : node_modules
24- key : ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}
25- restore-keys : |
26- ${{ runner.os }}-node-modules-
17+ node-version : " 20"
2718
2819 - name : Install Dependencies
29- run : npm ci
30- # `npm ci` is preferred over `npm install` in CI environments to install exactly what is in package-lock.json
20+ run : npm install
3121
32- - name : Verify @repo/ui Installation
33- run : npm ls @repo/ui || echo '@repo/ui not found'
34-
35- - name : Generate Prisma Client
22+ - name : Generate prisma client
3623 run : npm run db:generate
3724
38- - name : Check node_modules for @repo/ui
39- run : ls -l node_modules/@repo/ui || echo '@repo/ui is missing or not linked'
40-
4125 - name : Run Build
4226 run : npm run build
You can’t perform that action at this time.
0 commit comments