Skip to content

Commit

Permalink
Upgrade github actions to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesst20 committed May 9, 2024
1 parent a3b1f38 commit b9e7387
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 14 deletions.
26 changes: 12 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,31 @@ 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
runs-on: ubuntu-22.04

strategy:
matrix:
adapter: ['react', 'vue2', 'vue3']
adapter: ['react', 'vue2', 'vue3', 'svelte5']
node-version: [18]

steps:
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v2
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
node-version: 16.15
version: 9

- name: Cache node modules
uses: actions/cache@v2
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
key: ${{ runner.OS }}-npm-cache-${{ hashFiles('package-lock.json') }}
path: |
~/.cache
node_modules
packages/${{ matrix.adapter }}/tests/node_modules
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

- name: Build Inertia
run: |
npm install
pnpm install
cd packages/core && npm run build
cd ../${{ matrix.adapter }} && npm run build
Expand Down
1 change: 1 addition & 0 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"@types/react": "^16.9.1",
"@types/react-dom": "^16.9.17",
"esbuild": "^0.16.13",
"esbuild-node-externals": "^1.6.0",
"react": "^16.9.0 || ^17.0.0 || ^18.0.0",
"typescript": "^4.9.4"
},
Expand Down
1 change: 1 addition & 0 deletions packages/vue2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
},
"devDependencies": {
"esbuild": "^0.16.13",
"esbuild-node-externals": "^1.6.0",
"typescript": "^4.9.4",
"vue": "^2.7.0"
},
Expand Down
1 change: 1 addition & 0 deletions packages/vue3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
},
"devDependencies": {
"esbuild": "^0.16.13",
"esbuild-node-externals": "^1.6.0",
"typescript": "^4.9.4",
"vue": "^3.0.0"
},
Expand Down
9 changes: 9 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b9e7387

Please sign in to comment.