Skip to content

Commit

Permalink
Update GitHub Actions workflow to install pnpm and configure caching …
Browse files Browse the repository at this point in the history
…for dependencies
  • Loading branch information
bluescorpian committed Feb 5, 2025
1 parent 62c07c8 commit 818ac07
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,17 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 10
run_install: false
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22.x"
cache: "pnpm"
cache-dependency-path: frontend/pnpm-lock.yaml

- name: Install dependencies
run: npm ci
Expand Down
6 changes: 3 additions & 3 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"check": "svelte-check --tsconfig ./tsconfig.app.json && tsc -p tsconfig.node.json",
"ci": "npm install"
"check": "svelte-check --tsconfig ./tsconfig.app.json && tsc -p tsconfig.node.json"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^5.0.3",
Expand All @@ -21,5 +20,6 @@
"dependencies": {
"@sveltestrap/sveltestrap": "^7.0.3",
"moment": "^2.30.1"
}
},
"packageManager": "[email protected]"
}

0 comments on commit 818ac07

Please sign in to comment.