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