Skip to content

Commit

Permalink
Allow legacy peer deps in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit0 committed Apr 29, 2024
1 parent ea2e3d0 commit 03fcf86
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Expand Up @@ -5,7 +5,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: ["16", "18", "20"]
node: ["18", "20", "22"]
name: Node ${{ matrix.node }}
steps:
- name: Checkout repository
Expand All @@ -15,7 +15,7 @@ jobs:
with:
node-version: ${{ matrix.node }}
- name: Install
run: npm ci
run: npm ci --legacy-peer-deps
- name: Build
run: npm run build
- name: Test
Expand Down Expand Up @@ -43,7 +43,7 @@ jobs:
- name: Upgrade npm
run: npm i -g npm@latest
- name: Install
run: npm ci
run: npm ci --legacy-peer-deps
- name: Build
run: npm run build
- name: Test
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-beta.yml
Expand Up @@ -18,13 +18,13 @@ jobs:
if: steps.check.outputs.changed == 'true' && contains(steps.check.outputs.version, 'beta')
uses: actions/setup-node@v1
with:
node-version: "16"
node-version: "18"
- name: Upgrade npm
if: steps.check.outputs.changed == 'true' && contains(steps.check.outputs.version, 'beta')
run: npm i -g npm@latest
- name: Install
if: steps.check.outputs.changed == 'true' && contains(steps.check.outputs.version, 'beta')
run: npm ci
run: npm ci --legacy-peer-deps
- name: Setup publish token
if: steps.check.outputs.changed == 'true' && contains(steps.check.outputs.version, 'beta')
run: echo "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}" > .npmrc
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-lts.yml
Expand Up @@ -18,13 +18,13 @@ jobs:
if: steps.check.outputs.changed == 'true'
uses: actions/setup-node@v3
with:
node-version: "16"
node-version: "18"
- name: Upgrade npm
if: steps.check.outputs.changed == 'true'
run: npm i -g npm@latest
- name: Install
if: steps.check.outputs.changed == 'true'
run: npm ci
run: npm ci --legacy-peer-deps
- name: Setup publish token
if: steps.check.outputs.changed == 'true'
run: echo "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}" > .npmrc
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Expand Up @@ -20,10 +20,10 @@ jobs:
if: steps.check.outputs.changed == 'true'
uses: actions/setup-node@v3
with:
node-version: "16"
node-version: "18"
- name: Install
if: steps.check.outputs.changed == 'true'
run: npm ci
run: npm ci --legacy-peer-deps
- name: Setup publish token
if: steps.check.outputs.changed == 'true'
run: echo "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}" > .npmrc
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/visual-regression.yml
Expand Up @@ -9,22 +9,22 @@ jobs:
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
- name: Upgrade npm
run: npm i -g npm@latest
- name: Get baseline screenshots
run: |
git fetch
git checkout origin/$GITHUB_BASE_REF
npm ci
npm ci --legacy-peer-deps
npm run build
node dist/test/capture-screenshots.js
npm run test:visual:accept
- name: Get current screenshots
run: |
git checkout $GITHUB_SHA
npm ci
npm ci --legacy-peer-deps
npm run build
node dist/test/capture-screenshots.js
- name: Test
Expand Down

0 comments on commit 03fcf86

Please sign in to comment.