From 4537010512ce094e4669f2acf2a2c7ecb5b2ef26 Mon Sep 17 00:00:00 2001 From: semanticdata Date: Tue, 27 Feb 2024 11:28:40 -0600 Subject: [PATCH] new test workflow --- .github/workflows/deploy-test.yml | 35 +++++++------------------------ 1 file changed, 7 insertions(+), 28 deletions(-) diff --git a/.github/workflows/deploy-test.yml b/.github/workflows/deploy-test.yml index 7daf352..f4a8803 100644 --- a/.github/workflows/deploy-test.yml +++ b/.github/workflows/deploy-test.yml @@ -1,4 +1,4 @@ -name: Deploy to GitHub Pages (test) +name: Deploy to GitHub Pages (test)(npm) on: workflow_dispatch: @@ -19,37 +19,16 @@ jobs: build: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v4 + - uses: actions/checkout@v4 with: fetch-depth: 0 # Fetch all history for git info - - name: Install Node.js - uses: actions/setup-node@v3 + - uses: actions/setup-node@v3 with: - node-version: 18 - - uses: pnpm/action-setup@v3 - name: Install pnpm - with: - version: 8 - run_install: false - - - name: Get pnpm store directory - shell: bash - run: | - echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV - - - uses: actions/cache@v3 - name: Setup pnpm cache - with: - path: ${{ env.STORE_PATH }} - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-pnpm-store- - + node-version: 20.11.0 - name: Install dependencies - run: pnpm install - - name: Build the site - run: pnpm run build + run: npm i + - name: Build + run: export NODE_ENV=production && npx @11ty/eleventy --output=_site - name: Upload artifact uses: actions/upload-pages-artifact@v3