From 8a4e0ba0e48f0f604b02dde793ca10882c2a0ecb Mon Sep 17 00:00:00 2001 From: LeRatierBretonnier Date: Wed, 1 Apr 2026 08:51:39 +0200 Subject: [PATCH] ci: Make pack compilation explicit in release workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remplace npm run build:full par 3 étapes séparées et nommées : - Install dependencies (npm ci) - Compile compendium packs (npm run pack:compile) - Build CSS and JavaScript (npm run build) Les compendiums sont désormais générés à la volée depuis packs-src/ à chaque release, indépendamment de l'état commité de packs/. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .gitea/workflows/release.yaml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 5c00f45..e8e98d2 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -17,16 +17,21 @@ jobs: id: get_version uses: https://github.com/battila7/get-version-action@v2 - # Install Node.js and build CSS + packs - name: Setup Node.js uses: https://github.com/actions/setup-node@v3 with: node-version: "20" - - name: Install dependencies and build - run: | - npm ci - npm run build:full + - name: Install dependencies + run: npm ci + + # Génération à la volée des compendiums (packs-src/ → packs/ LevelDB) + - name: Compile compendium packs + run: npm run pack:compile + + # Compilation CSS (LESS → css/) et bundle JavaScript (src/ → dist/) + - name: Build CSS and JavaScript + run: npm run build # Substitute the Manifest and Download URLs in the system.json - name: Substitute Manifest and Download Links For Versioned Ones