Skip to content

Commit

Permalink
ci: adds --legacy-peer-deps flag to npm ci calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Stacy committed Sep 10, 2024
1 parent 76b7632 commit 1fe0274
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
cache: 'npm'
cache-dependency-path: 'package-lock.json'
- name: Install Dependencies
run: npm ci
run: npm ci --legacy-peer-deps
- name: Run Linter
run: npm run lint
test:
Expand All @@ -41,7 +41,7 @@ jobs:
cache: 'npm'
cache-dependency-path: 'package-lock.json'
- name: Install Dependencies
run: npm ci
run: npm ci --legacy-peer-deps
- name: Run Linter
run: npm run test
build:
Expand All @@ -57,7 +57,7 @@ jobs:
cache: 'npm'
cache-dependency-path: 'package-lock.json'
- name: Install Dependencies
run: npm ci
run: npm ci --legacy-peer-deps
- name: Build the Library
run: npm run build
- name: Upload the build artifact
Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:
cache: 'npm'
cache-dependency-path: 'package-lock.json'
- name: Install dependencies
run: npm ci
run: npm ci --legacy-peer-deps
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
run: npm audit signatures
- name: Download the build artifact
Expand All @@ -110,23 +110,19 @@ jobs:
fetch-depth: 0
# if your docs needs submodules, uncomment the following line
# submodules: true

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20
cache: npm

- name: Install Deps
run: npm ci

run: npm ci --legacy-peer-deps
- name: Build Docs
env:
NODE_OPTIONS: --max_old_space_size=8192
run: |-
npm run docs:build
> docs/.vuepress/dist/.nojekyll
- name: Deploy Docs
uses: JamesIves/github-pages-deploy-action@v4
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
cache: 'npm'
cache-dependency-path: 'package-lock.json'
- name: Install Dependencies
run: npm ci
run: npm ci --legacy-peer-deps
- name: Run Linter
run: npm run lint
test:
Expand All @@ -40,7 +40,7 @@ jobs:
cache: 'npm'
cache-dependency-path: 'package-lock.json'
- name: Install Dependencies
run: npm ci
run: npm ci --legacy-peer-deps
- name: Run Linter
run: npm run test
build:
Expand All @@ -56,6 +56,6 @@ jobs:
cache: 'npm'
cache-dependency-path: 'package-lock.json'
- name: Install Dependencies
run: npm ci
run: npm ci --legacy-peer-deps
- name: Build the Library
run: npm run build

0 comments on commit 1fe0274

Please sign in to comment.