ci: Make pack compilation explicit in release workflow
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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user