Skip to content

Commit

Permalink
Migrate to pnpm, update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Mansive committed Jan 6, 2024
1 parent f3e8b66 commit 9a245cb
Show file tree
Hide file tree
Showing 4 changed files with 2,757 additions and 4,333 deletions.
22 changes: 9 additions & 13 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,23 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

# Run a build step here if your project requires
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: false

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 21.x
- uses: actions/cache@v3
with:
path: |
~/.npm
${{ github.workspace }}/.next/cache
# Generate a new cache whenever packages or source files change.
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
# If source files changed but packages didn't, rebuild from a prior cache.
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
cache: "pnpm"

- name: Install dependencies
run: npm ci
run: pnpm install

- name: Build
run: npx @cloudflare/next-on-pages@1
run: pnpm dlx @cloudflare/next-on-pages@1
env:
XATA_API_KEY: ${{ secrets.XATA_API_KEY }}

Expand Down
Loading

0 comments on commit 9a245cb

Please sign in to comment.