Skip to content

Update test#835.yml

Update test#835.yml #4

Workflow file for this run

name: Node.js CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
# Step 1: Setup Node.js
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
# Step 2: Install dependencies using npm install (fallback)
- name: Install dependencies
run: npm install --verbose
# Step 3: Cache node_modules (optional, if needed for your workflow)
- name: Cache node_modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-