File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,14 +23,14 @@ jobs:
2323 uses : actions/setup-node@v4
2424 with :
2525 node-version : 20
26- cache : ' npm '
26+ cache : ' yarn '
2727 - name : Install Dependencies
28- run : npm ci
28+ run : yarn install --frozen-lockfile
2929 # We don't run tests here since we assume it's already done during PR process.
3030 # - name: Update Browser List
3131 # run: npx browserslist@latest --update-db
3232 - name : Build React App
33- run : npm run build && cp build/index.html build/200.html
33+ run : yarn run build && cp build/index.html build/200.html
3434 env :
3535 NODE_ENV : ${{ github.ref_name == 'main' && 'production' || 'development' }}
3636 REACT_APP_APIENDPOINT : ${{ vars.REACT_APP_API_ENDPOINT }}
Original file line number Diff line number Diff line change @@ -46,15 +46,13 @@ jobs:
4646 - uses : actions/checkout@v4
4747 with :
4848 fetch-depth : 0
49- - uses : actions/setup-node@v4
50- with :
51- node-version : 20
52- cache : ' yarn'
53- - name : Enable Corepack
54- run : corepack enable
55- - name : Install Dependencies
56- run : yarn install --frozen-lockfile
57- - name : Run Unit Tests for Changed Files Only
58- run : yarn test:changed
59- - name : Run Lint
60- run : yarn lint
49+ - uses : actions/setup-node@v4
50+ with :
51+ node-version : 20
52+ cache : ' yarn'
53+ - name : Install Dependencies
54+ run : yarn install --frozen-lockfile
55+ - name : Run Unit Tests for Changed Files Only
56+ run : yarn run test:changed
57+ - name : Run Lint
58+ run : yarn run lint
Original file line number Diff line number Diff line change @@ -12,17 +12,14 @@ jobs:
1212 - name : Checkout repository
1313 uses : actions/checkout@v3
1414
15- - name : Set up Node.js & cache npm
15+ - name : Set up Node.js & cache Yarn
1616 uses : actions/setup-node@v4
1717 with :
1818 node-version : 20
1919 cache : yarn
2020
21- - name : Enable Corepack
22- run : corepack enable
23-
2421 - name : Install dependencies
25- run : yarn install --frozen-lockfile
22+ run : yarn install
2623
2724 - name : Run tests
2825 run : yarn test
You can’t perform that action at this time.
0 commit comments