Skip to content

Commit 0d1eaa4

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 0d1eaa4

File tree

3 files changed

+11
-14
lines changed

3 files changed

+11
-14
lines changed

.github/workflows/hugo.yml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,11 @@ 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 nodejs
36+
- name: Install pnpm
37+
run: curl -fsSL https://get.pnpm.io/install.sh | sh -
4238
- name: Checkout
4339
uses: actions/checkout@v4
4440
with:
@@ -48,14 +44,13 @@ jobs:
4844
- name: Setup Pages
4945
id: pages
5046
uses: actions/configure-pages@v4
47+
- name: Install project dependencies
48+
run: pnpm recursive install
5149
- name: Build with Hugo
52-
env:
53-
# For maximum backward compatibility with Hugo modules
54-
HUGO_ENVIRONMENT: production
55-
HUGO_ENV: production
5650
run: |
57-
hugo \
51+
pnpm exec hugo \
5852
--minify \
53+
--environment "production" \
5954
--baseURL "${{ steps.pages.outputs.base_url }}/"
6055
- name: Upload artifact
6156
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)