Skip to content

Commit

Permalink
Update deployment workflow
Browse files Browse the repository at this point in the history
* Upgrade action versions
* Auto detect node version
* Filter installed deps to server
  • Loading branch information
jakst committed Dec 27, 2024
1 parent 4a24d07 commit 103ca0e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/deploy-worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: package.json

- name: Install pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v4
id: pnpm-install
with:
run_install: false
Expand All @@ -35,7 +37,7 @@ jobs:
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
run: pnpm install --filter=server

- name: Deploy to Cloudflare Workers
env:
Expand Down

0 comments on commit 103ca0e

Please sign in to comment.