Skip to content

Commit 965a42b

Browse files
committed
chore: update Node.js version to 20 and enhance pnpm setup with caching
1 parent 7fe3ea9 commit 965a42b

2 files changed

Lines changed: 18 additions & 11 deletions

File tree

.github/workflows/deploy-page.yml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,26 @@ jobs:
3131
id: node-setup
3232
with:
3333
node-version: '20'
34-
cache: 'pnpm'
35-
36-
- name: Install PNPM
34+
35+
- name: Setup pnpm
3736
uses: pnpm/action-setup@v3
38-
id: pnpm-setup
3937
with:
40-
version: 8
41-
run_install: true
42-
43-
- name: Setup PNPM
38+
version: 8
39+
run_install: false
40+
41+
- name: Get pnpm store directory
42+
id: pnpm-cache
43+
shell: bash
4444
run: |
45-
echo "PNPM_HOME=$HOME/.local/share/pnpm" >> $GITHUB_ENV
46-
echo "$HOME/.local/share/pnpm" >> $GITHUB_PATH
45+
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
46+
47+
- name: Setup pnpm cache
48+
uses: actions/cache@v4
49+
with:
50+
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
51+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
52+
restore-keys: |
53+
${{ runner.os }}-pnpm-store-
4754
4855
- name: Install dependencies
4956
working-directory: ./fe

.github/workflows/fe-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Setup Node.js
2323
uses: actions/setup-node@v4
2424
with:
25-
node-version: '18'
25+
node-version: '20'
2626

2727
- name: Setup pnpm
2828
uses: pnpm/action-setup@v3

0 commit comments

Comments
 (0)