Skip to content

Commit 2987b3e

Browse files
committed
update ci
1 parent 7123889 commit 2987b3e

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,32 +12,33 @@ jobs:
1212
- name: Get sources
1313
uses: actions/checkout@v3
1414

15-
- name: Use Node.js
16-
uses: actions/setup-node@v3
15+
- name: Use Node.js 20
16+
uses: actions/setup-node@v4
1717
with:
18-
node-version: '20'
18+
node-version: '20.19.0'
1919

2020
- name: Restore npm cache
2121
uses: actions/cache@v3
2222
with:
2323
path: ./node_modules
2424
key: ${{ runner.os }}-node-modules
2525

26-
- name: Run npm install
27-
run: npm install --no-audit --no-fund
26+
- name: Install dependencies (npm ci)
27+
run: npm ci --no-audit --no-fund
2828

2929
- name: Install Internal Package
3030
uses: DevExpress/github-actions/install-internal-package@main
3131

3232
- name: Build
3333
run: |
34-
npm pkg set homepage='https://devexpress.github.io/devextreme-react-template'
35-
npm run build
34+
rm -rf dist
35+
npx vite build --base "/devextreme-react-template/"
3636
3737
- name: Deploy
3838
uses: JamesIves/github-pages-deploy-action@ba1486788b0490a235422264426c45848eac35c6
3939
with:
4040
branch: gh-pages
41-
folder: build
41+
folder: dist
42+
clean: true
4243
target-folder: .
4344

0 commit comments

Comments
 (0)