Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 3 additions & 27 deletions .github/workflows/demo.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,34 +17,10 @@ jobs:

steps:
- uses: actions/checkout@v4

# Set up Node.js with caching for pnpm
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm' # Caching with pnpm

# Install pnpm globally
- name: Install pnpm
run: |
npm install -g pnpm
# Ensure pnpm is in the PATH
echo "/usr/local/bin" >> $GITHUB_PATH

# Cache pnpm store using actions/cache@v3
- name: Cache pnpm store
uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

# Install dependencies using pnpm
- name: Install dependencies
run: pnpm install

# Build the project using pnpm
- name: Build the project
run: pnpm run build --if-present
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
Loading