Skip to content

Commit 3d065a5

Browse files
committed
Refactor setup-node action and remove packageManager field
- Updated the setup-node GitHub action to specify `pnpm` version 9. - Removed the redundant root node_modules installation step. - Eliminated the `with` block specifying the directory in docs-lint.yaml. - Deleted the `packageManager` field from site/package.json for consistency.
1 parent e3ac0b1 commit 3d065a5

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

.github/actions/setup-node/action.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ runs:
1212
steps:
1313
- name: Install pnpm
1414
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
15+
with:
16+
version: 9
1517

1618
- name: Setup Node
1719
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
@@ -21,10 +23,6 @@ runs:
2123
cache: "pnpm"
2224
cache-dependency-path: ${{ inputs.directory }}/pnpm-lock.yaml
2325

24-
- name: Install root node_modules
25-
shell: bash
26-
run: ./scripts/pnpm_install.sh
27-
2826
- name: Install node_modules
2927
shell: bash
3028
run: ../scripts/pnpm_install.sh

.github/workflows/docs-lint.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ jobs:
1616

1717
- name: Setup Node
1818
uses: ./.github/actions/setup-node
19-
with:
20-
directory: "site"
2119

2220
- uses: tj-actions/changed-files@v45
2321
id: changed-files

site/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"repository": "https://github.com/coder/coder",
55
"private": true,
66
"license": "AGPL-3.0",
7-
"packageManager": "pnpm@9.14.4",
87
"scripts": {
98
"build": "NODE_ENV=production pnpm vite build",
109
"check": "biome check --error-on-warnings e2e/ src/",

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy