fix: fix build.sh (close #1026)

This commit is contained in:
JustSong 2024-02-25 01:53:27 +08:00
parent 32387d9c20
commit 0664bdfda1
4 changed files with 7 additions and 8 deletions

View File

@ -23,7 +23,7 @@ jobs:
- uses: actions/setup-node@v3 - uses: actions/setup-node@v3
with: with:
node-version: 16 node-version: 16
- name: Build Frontend (theme default) - name: Build Frontend
env: env:
CI: "" CI: ""
run: | run: |

View File

@ -23,7 +23,7 @@ jobs:
- uses: actions/setup-node@v3 - uses: actions/setup-node@v3
with: with:
node-version: 16 node-version: 16
- name: Build Frontend (theme default) - name: Build Frontend
env: env:
CI: "" CI: ""
run: | run: |

View File

@ -26,7 +26,7 @@ jobs:
- uses: actions/setup-node@v3 - uses: actions/setup-node@v3
with: with:
node-version: 16 node-version: 16
- name: Build Frontend (theme default) - name: Build Frontend
env: env:
CI: "" CI: ""
run: | run: |

View File

@ -1,13 +1,12 @@
#!/bin/sh #!/bin/sh
version=$(cat VERSION) version=$(cat VERSION)
themes=$(cat THEMES) pwd
IFS=$'\n'
for theme in $themes; do while IFS= read -r theme; do
echo "Building theme: $theme" echo "Building theme: $theme"
cd $theme cd "$theme"
npm install npm install
DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$version npm run build DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$version npm run build
cd .. cd ..
done done < THEMES