Skip to content

[Actions] Explicitly set up Node before setting up PNPM #337

[Actions] Explicitly set up Node before setting up PNPM

[Actions] Explicitly set up Node before setting up PNPM #337

Workflow file for this run

on: [pull_request]
name: PR preview
jobs:
build:
name: Generate PR preview
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
filter: 'blob:none'
- name: Setup PNPM and install dependencies
uses: pnpm/action-setup@v4
with:
version: latest
run_install: |
- args: [--frozen-lockfile]
- name: Build the project
run: pnpm run build
- name: Upload HTML artifact
uses: actions/upload-artifact@v4
with:
name: website-html
path: dist
retention-days: 1
- name: Upload Functions artifact
uses: actions/upload-artifact@v4
with:
name: website-functions
path: functions
retention-days: 1
- name: Upload package artifact
uses: actions/upload-artifact@v4
with:
name: website-package
path: |
package.json
package-lock.json
retention-days: 1