From 86188c498c6e36727d0203c9a1693dd1c3fe18d7 Mon Sep 17 00:00:00 2001 From: Jose Jimenez Date: Mon, 2 Feb 2026 22:15:36 +0100 Subject: [PATCH] Update deploy to use alpine container --- .github/workflows/deploy.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 1c22681..3440c01 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -19,15 +19,20 @@ jobs: build: runs-on: ubuntu-latest + container: + image: node:24-alpine + steps: - name: Checkout uses: actions/checkout@v4 - - name: Setup Node - uses: actions/setup-node@v4 + - name: Cache npm + uses: actions/cache@v4 with: - node-version: 24 - cache: npm + path: ~/.npm + key: ${{ runner.os }}-npm-${{ hashFiles('package-lock.json') }} + restore-keys: | + ${{ runner.os }}-npm- - name: Install dependencies run: npm ci @@ -41,11 +46,12 @@ jobs: path: dist deploy: + needs: build + runs-on: ubuntu-latest + environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest - needs: build steps: - name: Deploy to GitHub Pages