mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 11:11:53 +00:00
Set IS_NIGHTLY right when we build (#8482)
## Summary ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-8482-Set-IS_NIGHTLY-right-when-we-build-2f86d73d365081009fdbc2aee8f7545d) by [Unito](https://www.unito.io)
This commit is contained in:
1
.github/workflows/release-draft-create.yaml
vendored
1
.github/workflows/release-draft-create.yaml
vendored
@@ -50,6 +50,7 @@ jobs:
|
|||||||
ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
|
ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
|
||||||
ENABLE_MINIFY: 'true'
|
ENABLE_MINIFY: 'true'
|
||||||
USE_PROD_CONFIG: 'true'
|
USE_PROD_CONFIG: 'true'
|
||||||
|
IS_NIGHTLY: ${{ case(github.ref == 'refs/heads/main', 'true', 'false') }}
|
||||||
run: |
|
run: |
|
||||||
pnpm install --frozen-lockfile
|
pnpm install --frozen-lockfile
|
||||||
pnpm build
|
pnpm build
|
||||||
|
|||||||
@@ -53,11 +53,7 @@ const DISTRIBUTION: 'desktop' | 'localhost' | 'cloud' =
|
|||||||
|
|
||||||
// Nightly builds are from main branch; RC/stable builds are from core/* branches
|
// Nightly builds are from main branch; RC/stable builds are from core/* branches
|
||||||
// Can be overridden via IS_NIGHTLY env var for testing
|
// Can be overridden via IS_NIGHTLY env var for testing
|
||||||
const IS_NIGHTLY =
|
const IS_NIGHTLY = process.env.IS_NIGHTLY === 'true'
|
||||||
process.env.IS_NIGHTLY === 'true' ||
|
|
||||||
(process.env.IS_NIGHTLY !== 'false' &&
|
|
||||||
process.env.CI === 'true' &&
|
|
||||||
process.env.GITHUB_REF_NAME === 'main')
|
|
||||||
|
|
||||||
// Disable Vue DevTools for production cloud distribution
|
// Disable Vue DevTools for production cloud distribution
|
||||||
const DISABLE_VUE_PLUGINS =
|
const DISABLE_VUE_PLUGINS =
|
||||||
|
|||||||
Reference in New Issue
Block a user