fix: remove bun

This commit is contained in:
ckt1031 2023-09-16 00:19:59 +08:00
commit 9b399e190f
8 changed files with 2015 additions and 24 deletions

View File

@ -19,17 +19,13 @@ jobs:
- name: Translate - name: Translate
run: | run: |
python ./i18n/translate.py --repository_path . --json_file_path ./i18n/en.json python ./i18n/translate.py --repository_path . --json_file_path ./i18n/en.json
- uses: oven-sh/setup-bun@a1800f471a0bc25cddac36bb13e6f436ddf341d7 # v1
with:
bun-version: latest
- name: Build Frontend - name: Build Frontend
env: env:
CI: "" CI: ""
run: | run: |
cd web cd web
bun install npm install
REACT_APP_VERSION=$(git describe --tags) bun run build REACT_APP_VERSION=$(git describe --tags) npm run build
cd .. cd ..
- name: Set up Go - name: Set up Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0

View File

@ -15,16 +15,13 @@ jobs:
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
with: with:
fetch-depth: 0 fetch-depth: 0
- uses: oven-sh/setup-bun@a1800f471a0bc25cddac36bb13e6f436ddf341d7 # v1
with:
bun-version: latest
- name: Build Frontend - name: Build Frontend
env: env:
CI: "" CI: ""
run: | run: |
cd web cd web
bun install npm install
REACT_APP_VERSION=$(git describe --tags) bun run build REACT_APP_VERSION=$(git describe --tags) npm run build
cd .. cd ..
- name: Set up Go - name: Set up Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0

View File

@ -15,16 +15,13 @@ jobs:
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
with: with:
fetch-depth: 0 fetch-depth: 0
- uses: oven-sh/setup-bun@a1800f471a0bc25cddac36bb13e6f436ddf341d7 # v1
with:
bun-version: latest
- name: Build Frontend - name: Build Frontend
env: env:
CI: "" CI: ""
run: | run: |
cd web cd web
bun install npm install
REACT_APP_VERSION=$(git describe --tags) bun run build REACT_APP_VERSION=$(git describe --tags) npm run build
cd .. cd ..
- name: Set up Go - name: Set up Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0

View File

@ -18,16 +18,13 @@ jobs:
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
with: with:
fetch-depth: 0 fetch-depth: 0
- uses: oven-sh/setup-bun@a1800f471a0bc25cddac36bb13e6f436ddf341d7 # v1
with:
bun-version: latest
- name: Build Frontend - name: Build Frontend
env: env:
CI: "" CI: ""
run: | run: |
cd web cd web
bun install npm install
REACT_APP_VERSION=$(git describe --tags) bun run build REACT_APP_VERSION=$(git describe --tags) npm run build
cd .. cd ..
- name: Set up Go - name: Set up Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0

View File

@ -7,7 +7,7 @@ RUN chmod +x ./translate-en.sh && ./translate-en.sh
FROM node:18 as builder FROM node:18 as builder
WORKDIR /build WORKDIR /build
COPY ./web/package.json ./ COPY ./web/package*.json ./
RUN npm i RUN npm i
COPY --from=translator ./app/web . COPY --from=translator ./app/web .
COPY ./VERSION . COPY ./VERSION .

View File

@ -4,10 +4,10 @@
```shell ```shell
# Runs the app in the development mode # Runs the app in the development mode
bun start npm start
# Builds the app for production to the `build` folder # Builds the app for production to the `build` folder
bun run build npm run build
``` ```
If you want to change the default server, please set `REACT_APP_SERVER` environment variables before build, If you want to change the default server, please set `REACT_APP_SERVER` environment variables before build,

Binary file not shown.

2004
web/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff