Skip to content

Commit

Permalink
Updated action flow.
Browse files Browse the repository at this point in the history
  • Loading branch information
srm985 committed Apr 3, 2024
1 parent e2f3426 commit f853b5d
Showing 1 changed file with 8 additions and 32 deletions.
40 changes: 8 additions & 32 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,11 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: '20.x'

- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: npm-
cache: 'npm'

# Install Node Modules
- name: Install
run: npm ci
run: npm ci --legacy-peer-deps

# Lint JavaScript
- name: Lint JavaScript
Expand All @@ -51,17 +45,11 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: '20.x'

- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: npm-
cache: 'npm'

# Install Node Modules
- name: Install
run: npm ci
run: npm ci --legacy-peer-deps

# Lint CSS
- name: Lint CSS
Expand All @@ -80,17 +68,11 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: '20.x'

- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: npm-
cache: 'npm'

# Install Node Modules
- name: Install
run: npm ci
run: npm ci --legacy-peer-deps

# Test
- name: Test
Expand All @@ -110,17 +92,11 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: '20.x'

- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: npm-
cache: 'npm'

# Install Node Modules
- name: Install
run: npm ci
run: npm ci --legacy-peer-deps

# Build the website
- name: Build
Expand Down

0 comments on commit f853b5d

Please sign in to comment.