mirror of
https://github.com/gotson/komga.git
synced 2026-10-19 10:13:37 +00:00
use different node for each webui
This commit is contained in:
parent
48d1911888
commit
02798ed4b1
5 changed files with 33 additions and 19 deletions
6
.github/workflows/chromatic.yml
vendored
6
.github/workflows/chromatic.yml
vendored
|
|
@ -2,6 +2,10 @@ name: Chromatic
|
|||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- '.github/workflows/chromatic.yml'
|
||||
- 'next-ui/**'
|
||||
- '!next-ui/i18n/*'
|
||||
branches:
|
||||
- 'next-ui'
|
||||
|
||||
|
|
@ -17,7 +21,7 @@ jobs:
|
|||
|
||||
- uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
node-version-file: 'next-ui/.nvmrc'
|
||||
cache: 'npm'
|
||||
cache-dependency-path: next-ui/package-lock.json
|
||||
|
||||
|
|
|
|||
42
.github/workflows/release.yml
vendored
42
.github/workflows/release.yml
vendored
|
|
@ -84,19 +84,6 @@ jobs:
|
|||
if: needs.version.outputs.should_release #only redo if the version changed
|
||||
run: sed -i -e "s/version=.*/version=${{ needs.version.outputs.version_next }}/" gradle.properties
|
||||
|
||||
- uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
cache: 'npm'
|
||||
cache-dependency-path: '**/package-lock.json'
|
||||
|
||||
- name: Setup Java 21
|
||||
uses: actions/setup-java@v5
|
||||
with:
|
||||
java-version: 21
|
||||
java-package: 'jdk'
|
||||
distribution: 'temurin'
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v4
|
||||
|
||||
|
|
@ -116,8 +103,12 @@ jobs:
|
|||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Setup Gradle
|
||||
uses: gradle/actions/setup-gradle@v5
|
||||
- name: WebUI - Setup Node
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version-file: 'komga-webui/.nvmrc'
|
||||
cache: 'npm'
|
||||
cache-dependency-path: '**/package-lock.json'
|
||||
|
||||
- name: WebUI - npm install
|
||||
working-directory: komga-webui
|
||||
|
|
@ -126,19 +117,36 @@ jobs:
|
|||
- name: WebUI - build
|
||||
working-directory: komga-webui
|
||||
run: npm run build
|
||||
env:
|
||||
NODE_OPTIONS: "--max-old-space-size=4096"
|
||||
|
||||
- name: NextUI - Setup Node
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version-file: 'next-ui/.nvmrc'
|
||||
cache: 'npm'
|
||||
cache-dependency-path: next-ui/package-lock.json
|
||||
|
||||
- name: NextUI - npm install
|
||||
working-directory: next-ui
|
||||
run: npm ci
|
||||
|
||||
- name: Setup Java 21
|
||||
uses: actions/setup-java@v5
|
||||
with:
|
||||
java-version: 21
|
||||
java-package: 'jdk'
|
||||
distribution: 'temurin'
|
||||
|
||||
- name: NextUI - build
|
||||
working-directory: next-ui
|
||||
run: npm run build
|
||||
|
||||
- name: Setup Gradle
|
||||
uses: gradle/actions/setup-gradle@v5
|
||||
|
||||
- name: Build
|
||||
run: ./gradlew :komga:webuiCopyIndex :komga:nextuiCopyIndex :komga:bootJar :komga-tray:jar
|
||||
env:
|
||||
NODE_OPTIONS: "--max-old-space-size=4096"
|
||||
|
||||
- name: Generate OpenAPI docs
|
||||
if: needs.version.outputs.should_release #only redo if the version changed
|
||||
|
|
|
|||
1
.github/workflows/test-nextui.yml
vendored
1
.github/workflows/test-nextui.yml
vendored
|
|
@ -7,6 +7,7 @@ on:
|
|||
- '!next-ui/i18n/*'
|
||||
push:
|
||||
paths:
|
||||
- '.github/workflows/test-nextui.yml'
|
||||
- 'next-ui/**'
|
||||
- '!next-ui/i18n/*'
|
||||
branches-ignore:
|
||||
|
|
|
|||
3
.github/workflows/test-webui.yml
vendored
3
.github/workflows/test-webui.yml
vendored
|
|
@ -7,6 +7,7 @@ on:
|
|||
- '!komga-webui/src/locales/*'
|
||||
push:
|
||||
paths:
|
||||
- '.github/workflows/test-webui.yml'
|
||||
- 'komga-webui/**'
|
||||
- '!komga-webui/src/locales/*'
|
||||
branches-ignore:
|
||||
|
|
@ -22,7 +23,7 @@ jobs:
|
|||
|
||||
- uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
node-version-file: 'komga-webui/.nvmrc'
|
||||
cache: 'npm'
|
||||
cache-dependency-path: komga-webui/package-lock.json
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue