|
8 | 8 | uses: actions/checkout@v4 |
9 | 9 | with: |
10 | 10 | persist-credentials: false |
11 | | - - name: Checkout Infobook-html 📚 |
12 | | - uses: actions/checkout@v4 |
13 | | - with: |
14 | | - repository: CyclopsMC/Infobook-html |
15 | | - path: infobook-html |
16 | 11 | - name: Setup Java ☕ |
17 | 12 | uses: actions/setup-java@v4 |
18 | 13 | with: |
|
31 | 26 | key: minecraft-${{ hashFiles('modpack.json') }} |
32 | 27 | restore-keys: | |
33 | 28 | minecraft- |
34 | | - - name: Apply icon generation script to Infobook-html 🔧 |
35 | | - run: | |
36 | | - cp infobook-html-additions/bin/generate-icons.ts infobook-html/bin/generate-icons.ts |
37 | | - cp infobook-html-additions/lib/modloader/IconsGenerator.ts infobook-html/lib/modloader/IconsGenerator.ts |
38 | | - mkdir -p infobook-html/test/modloader |
39 | | - cp infobook-html-additions/test/modloader/IconsGenerator-test.ts infobook-html/test/modloader/IconsGenerator-test.ts |
40 | | - jq '.bin["generate-icons"] = "bin/generate-icons.js"' infobook-html/package.json > /tmp/pkg-patched.json |
41 | | - mv /tmp/pkg-patched.json infobook-html/package.json |
42 | | - jq '.compilerOptions.skipLibCheck = true' infobook-html/tsconfig.json > /tmp/tsconfig-patched.json |
43 | | - mv /tmp/tsconfig-patched.json infobook-html/tsconfig.json |
44 | | - sed -i 's/\.map(() => \[\])/\.map((): any[] => [])/' infobook-html/lib/infobook/appendix/InfoBookAppendixHandlerCraftingRecipe.ts |
45 | | - - name: Build and link Infobook-html 🔗 |
46 | | - run: | |
47 | | - cd infobook-html |
48 | | - npm install --legacy-peer-deps --ignore-scripts |
49 | | - npm run build |
50 | | - npm link |
51 | 29 | - name: Install and Build 🔧 |
52 | 30 | run: | |
53 | | - npm install --legacy-peer-deps --ignore-scripts |
54 | | - npm link cyclops-infobook-html --legacy-peer-deps |
| 31 | + npm install --legacy-peer-deps |
55 | 32 | npm run build |
56 | 33 | npm run lint |
57 | 34 | - name: Download mods and generate metadata 📦 |
|
69 | 46 | BRANCH: gh-pages |
70 | 47 | FOLDER: output |
71 | 48 | CLEAN: true |
| 49 | + |
0 commit comments