Skip to content

Commit 09b2a4b

Browse files
removed need for ci=false & PUBLIC_URL
1 parent 7400f60 commit 09b2a4b

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
PUBLIC_URL=.

.github/workflows/Build-Deploy.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ jobs:
2020
cache: npm
2121

2222
- name: Build
23-
run: |
24-
CI=false npm install
25-
CI=false npm run build
23+
run: npm ci && npm run build
2624

2725
- name: Deploy to gh-pages
2826
uses: peaceiris/actions-gh-pages@v3

.github/workflows/PR-Preview.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ jobs:
3131
GITHUB_TOKEN: ${{ secrets.BOT }}
3232

3333
- name: Build
34-
run: |
35-
npm ci
36-
CI=false PUBLIC_URL=https://android-preview.blueedge.me/${{ github.event.pull_request.number }} npm run build
34+
run: npm ci && npm run build
3735

3836
- uses: peaceiris/actions-gh-pages@v3
3937
with:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
},
3636
"scripts": {
3737
"start": "react-scripts start",
38-
"build": "react-scripts build",
38+
"build": "CI=false react-scripts build",
3939
"test": "react-scripts test",
4040
"eject": "react-scripts eject",
4141
"tauri": "tauri"

0 commit comments

Comments
 (0)