Skip to content

Commit 8d86d12

Browse files
committed
Add pnpm-workspace.yaml and update github ci
- pnpm-workspace.yaml: To recurse into themes/mypaint/package.json - github ci: Use pnpm to build; needed at this point to build the site Also bump theme version Signed-off-by: Aesara Binder <[email protected]>
1 parent 1f4affe commit 8d86d12

File tree

3 files changed

+9
-14
lines changed

3 files changed

+9
-14
lines changed

.github/workflows/hugo.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,9 @@ jobs:
3030
# Build job
3131
build:
3232
runs-on: ubuntu-latest
33-
env:
34-
HUGO_VERSION: 0.143.1
3533
steps:
36-
- name: Install Hugo CLI
37-
run: |
38-
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
39-
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
40-
- name: Install Dart Sass
41-
run: sudo snap install dart-sass
34+
- name: Install system dependencies
35+
run: sudo snap install dart-sass pnpm
4236
- name: Checkout
4337
uses: actions/checkout@v4
4438
with:
@@ -48,14 +42,13 @@ jobs:
4842
- name: Setup Pages
4943
id: pages
5044
uses: actions/configure-pages@v4
45+
- name: Install project dependencies
46+
run: pnpm recursive install
5147
- name: Build with Hugo
52-
env:
53-
# For maximum backward compatibility with Hugo modules
54-
HUGO_ENVIRONMENT: production
55-
HUGO_ENV: production
5648
run: |
57-
hugo \
49+
pnpm exec hugo \
5850
--minify \
51+
--environment "production" \
5952
--baseURL "${{ steps.pages.outputs.base_url }}/"
6053
- name: Upload artifact
6154
uses: actions/upload-pages-artifact@v3

pnpm-workspace.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
packages:
2+
- 'themes/mypaint'

0 commit comments

Comments
 (0)