Skip to content

Commit 4cd592b

Browse files
committed
Update setup-node action and docs lint workflow
- Set pnpm version explicitly to 9 in setup-node action. - Remove redundant root node_modules installation. - Pin specific versions for actions in docs-lint workflow. - Cleanup unused packageManager entry in package.json.
1 parent e3ac0b1 commit 4cd592b

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
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: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,15 @@ jobs:
1010
lint:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v4
13+
- name: Checkout
14+
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
1415
with:
1516
fetch-depth: 0
1617

1718
- name: Setup Node
1819
uses: ./.github/actions/setup-node
19-
with:
20-
directory: "site"
2120

22-
- uses: tj-actions/changed-files@v45
21+
- uses: tj-actions/changed-files@bab30c2299617f6615ec02a68b9a40d10bd21366 # v45.0.5
2322
id: changed-files
2423
with:
2524
files: "docs/**/*.md"

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