Skip to content

Commit

Permalink
new test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
semanticdata committed Feb 27, 2024
1 parent 07fac1d commit 4537010
Showing 1 changed file with 7 additions and 28 deletions.
35 changes: 7 additions & 28 deletions .github/workflows/deploy-test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy to GitHub Pages (test)
name: Deploy to GitHub Pages (test)(npm)

on:
workflow_dispatch:
Expand All @@ -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

Expand Down

0 comments on commit 4537010

Please sign in to comment.