Migrate from npm to pnpm #17
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: [push, pull_request] | |
jobs: | |
build: | |
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository | |
timeout-minutes: 15 | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
adapter: ['react', 'vue2', 'vue3'] | |
node-version: [20] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v3 | |
with: | |
version: 9 | |
- name: Setup Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'pnpm' | |
- name: Build Inertia | |
run: | | |
pnpm install | |
cd packages/core && pnpm run build | |
cd ../${{ matrix.adapter }} && pnpm run build | |
- name: Build Playground | |
run: | | |
cd playgrounds/${{ matrix.adapter }} && pnpm run build |