Skip to content

Commit 3009c39

Browse files
committed
🔧 Simplify pnpm auto node version management
1 parent ac88462 commit 3009c39

File tree

3 files changed

+3
-14
lines changed

3 files changed

+3
-14
lines changed

‎.github/actions/setup-deps/action.yml‎

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,6 @@ description: setup the job with node, pnpm and project dependencies
33
runs:
44
using: 'composite'
55
steps:
6-
- run: |
7-
echo "rename use-node-version to node-version to avoid issues with vercel build"
8-
sed -i 's/use-node-version/node-version/g' .npmrc
9-
shell: bash
106
- uses: pnpm/action-setup@v4
11-
- run: |
12-
echo "$(pnpm config get node-version)"
13-
echo "NODE_VERSION=$(pnpm config get node-version)" >> $GITHUB_ENV
14-
shell: bash
15-
- uses: actions/setup-node@v4
167
with:
17-
node-version: ${{ env.NODE_VERSION }}
18-
cache: 'pnpm'
19-
- run: pnpm i --frozen-lockfile
20-
shell: bash
8+
run_install: true

‎.npmrc‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎pnpm-workspace.yaml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
packages:
22
- 'apps/**'
33
- 'packages/**'
4+
5+
useNodeVersion: 18.14.0

0 commit comments

Comments
 (0)