chore: update CI workflow to use latest Bun version and adjust build environment variables
This commit is contained in:
4
.github/workflows/linux-release.yml
vendored
4
.github/workflows/linux-release.yml
vendored
@@ -22,14 +22,14 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: oven-sh/setup-bun@v2
|
- uses: oven-sh/setup-bun@v2
|
||||||
with:
|
with:
|
||||||
bun-version: 1.2.8
|
bun-version: latest
|
||||||
- name: Build Frontend
|
- name: Build Frontend
|
||||||
env:
|
env:
|
||||||
CI: ""
|
CI: ""
|
||||||
run: |
|
run: |
|
||||||
cd web
|
cd web
|
||||||
bun install
|
bun install
|
||||||
REACT_APP_VERSION=$(git describe --tags) bun run build
|
DISABLE_ESLINT_PLUGIN='true' VITE_REACT_APP_VERSION=$(git describe --tags) bun run build
|
||||||
cd ..
|
cd ..
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v3
|
uses: actions/setup-go@v3
|
||||||
|
|||||||
BIN
web/bun.lockb
BIN
web/bun.lockb
Binary file not shown.
@@ -43,10 +43,6 @@
|
|||||||
"unist-util-visit": "^5.0.0",
|
"unist-util-visit": "^5.0.0",
|
||||||
"use-debounce": "^10.0.4"
|
"use-debounce": "^10.0.4"
|
||||||
},
|
},
|
||||||
"trustedDependencies": [
|
|
||||||
"esbuild",
|
|
||||||
"@parcel/watcher"
|
|
||||||
],
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
@@ -73,7 +69,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@douyinfe/semi-webpack-plugin": "^2.78.0",
|
"@douyinfe/vite-plugin-semi": "^2.74.0-alpha.6",
|
||||||
"@so1ve/prettier-config": "^3.1.0",
|
"@so1ve/prettier-config": "^3.1.0",
|
||||||
"@vitejs/plugin-react": "^4.2.1",
|
"@vitejs/plugin-react": "^4.2.1",
|
||||||
"autoprefixer": "^10.4.21",
|
"autoprefixer": "^10.4.21",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { useCallback } from 'react';
|
import { useCallback } from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { SSE } from 'sse';
|
import { SSE } from 'sse.js';
|
||||||
import {
|
import {
|
||||||
API_ENDPOINTS,
|
API_ENDPOINTS,
|
||||||
MESSAGE_STATUS,
|
MESSAGE_STATUS,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import react from '@vitejs/plugin-react';
|
import react from '@vitejs/plugin-react';
|
||||||
import { defineConfig, transformWithEsbuild } from 'vite';
|
import { defineConfig, transformWithEsbuild } from 'vite';
|
||||||
import semiWebpackPlugin from '@douyinfe/semi-webpack-plugin';
|
import { vitePluginSemi } from '@douyinfe/vite-plugin-semi';
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
@@ -21,16 +21,9 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
react(),
|
react(),
|
||||||
{
|
vitePluginSemi({
|
||||||
name: 'semi-plugin',
|
cssLayer: true
|
||||||
apply: 'build',
|
})
|
||||||
configResolved() {
|
|
||||||
// Apply SemiWebpackPlugin during build
|
|
||||||
new semiWebpackPlugin({
|
|
||||||
cssLayer: true
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
],
|
||||||
optimizeDeps: {
|
optimizeDeps: {
|
||||||
force: true,
|
force: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user