Use system Node.js instead of downloading in workflows
Replace actions/setup-node with simple version checks to avoid "Text file busy" errors on self-hosted runners. This assumes Node.js is already installed on the runner. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
56b2211cb0
commit
136ef29bd2
4 changed files with 28 additions and 36 deletions
|
@ -16,10 +16,9 @@ jobs:
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v4
|
run: |
|
||||||
with:
|
node --version
|
||||||
node-version: '20'
|
npm --version
|
||||||
cache: 'npm'
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
@ -36,10 +35,9 @@ jobs:
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v4
|
run: |
|
||||||
with:
|
node --version
|
||||||
node-version: '20'
|
npm --version
|
||||||
cache: 'npm'
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
@ -59,11 +57,10 @@ jobs:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup Node.js ${{ matrix.node-version }}
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v4
|
run: |
|
||||||
with:
|
node --version
|
||||||
node-version: ${{ matrix.node-version }}
|
npm --version
|
||||||
cache: 'npm'
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
@ -87,10 +84,9 @@ jobs:
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v4
|
run: |
|
||||||
with:
|
node --version
|
||||||
node-version: '20'
|
npm --version
|
||||||
cache: 'npm'
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
@ -128,10 +124,9 @@ jobs:
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v4
|
run: |
|
||||||
with:
|
node --version
|
||||||
node-version: '20'
|
npm --version
|
||||||
cache: 'npm'
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
@ -160,9 +155,9 @@ jobs:
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v4
|
run: |
|
||||||
with:
|
node --version
|
||||||
node-version: '20'
|
npm --version
|
||||||
|
|
||||||
- name: Validate JSON files
|
- name: Validate JSON files
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -16,10 +16,9 @@ jobs:
|
||||||
fetch-depth: 0 # Full history for better analysis
|
fetch-depth: 0 # Full history for better analysis
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v4
|
run: |
|
||||||
with:
|
node --version
|
||||||
node-version: '20'
|
npm --version
|
||||||
cache: 'npm'
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
|
@ -16,10 +16,9 @@ jobs:
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v4
|
run: |
|
||||||
with:
|
node --version
|
||||||
node-version: '20'
|
npm --version
|
||||||
cache: 'npm'
|
|
||||||
|
|
||||||
- name: Check for major version changes
|
- name: Check for major version changes
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -17,10 +17,9 @@ jobs:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v4
|
run: |
|
||||||
with:
|
node --version
|
||||||
node-version: '20'
|
npm --version
|
||||||
cache: 'npm'
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue