removed need for ci=false & PUBLIC_URL

This commit is contained in:
Yashash
2022-05-13 20:02:57 +05:30
committed by GitHub
parent 65f55154f9
commit b28e40d443
7 changed files with 9 additions and 16 deletions

1
.env Normal file
View File

@@ -0,0 +1 @@
PUBLIC_URL=.

View File

@@ -2,8 +2,7 @@ name: Build & Deploy
on:
push:
branches:
- master
branches: [master]
workflow_dispatch:
jobs:
@@ -42,7 +41,7 @@ jobs:
api_token: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
- name: Build project
run: CI=false npm run build
run: npm run build
- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v3

View File

@@ -33,7 +33,7 @@ jobs:
api_token: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
- name: Build project
run: CI=false PUBLIC_URL=https://pr-preview.win11react.com/${{ github.event.pull_request.number }} npm run build
run: npm run build
- if: ${{ github.event.action == 'opened'}}
run: gh repo create win11bot/${{ github.event.pull_request.number }} --public

View File

@@ -70,9 +70,7 @@ jobs:
# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
- run: |
ci=false npm ci
ci=false npm run build
- run: npm ci && npm run build
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2

View File

@@ -22,9 +22,7 @@ jobs:
node-version: 16
- name: Build
run: |
npm ci
CI=false REACT_APP_STOREURL=https://win11react.github.io/experimental/dev-store.json npm run build
run: npm ci && REACT_APP_STOREURL=https://win11react.github.io/experimental/dev-store.json npm run build
- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v3

View File

@@ -25,11 +25,8 @@ jobs:
with:
node-version: 16
- name: Install NPM packages
run: npm ci
- name: Build project
run: CI=false REACT_APP_STOREURL=https://win11react.github.io/experimental/dev-store.json npm run build
- name: Install dependencies & Build
run: npm ci && REACT_APP_STOREURL=https://win11react.github.io/experimental/dev-store.json npm run build
- name: Set up QEMU
uses: docker/setup-qemu-action@v1

View File

@@ -35,7 +35,7 @@
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"build": "CI=false react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"tauri": "tauri",