Skip to content

Commit b13d039

Browse files
committed
Add Node.js setup, dependency installation, and static export steps to Docker GHCR workflow
1 parent 66e5bfb commit b13d039

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/docker-ghcr.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,24 @@ jobs:
1919
- name: Checkout
2020
uses: actions/checkout@v4
2121

22+
- name: Setup Node.js
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: "20"
26+
cache: "pnpm"
27+
28+
- name: Install dependencies
29+
run: |
30+
corepack enable pnpm
31+
pnpm install --frozen-lockfile
32+
33+
- name: Build static export
34+
env:
35+
NEXT_PUBLIC_API_URL: ${{ vars.NEXT_PUBLIC_API_URL || '' }}
36+
run: |
37+
pnpm build
38+
pnpm export
39+
2240
- name: Extract metadata (tags, labels)
2341
id: meta
2442
uses: docker/metadata-action@v5

0 commit comments

Comments
 (0)