From 2e095794234ee3f3eeae86c159918047ff6a1716 Mon Sep 17 00:00:00 2001 From: MariaAga Date: Thu, 29 Feb 2024 14:52:44 +0100 Subject: [PATCH] check npmrc --- .github/workflows/deploy.yml | 2 +- .github/workflows/test-foreman-js.yml | 2 +- .github/workflows/test-with-foreman.yml | 4 ++-- .github/workflows/test-with-plugins.yml | 6 +++--- .npmrc | 1 + packages/builder/.npmrc | 1 + packages/eslint-plugin-foreman/.npmrc | 1 + packages/eslint-plugin-rules/.npmrc | 1 + packages/test/.npmrc | 1 + packages/vendor-core/.npmrc | 1 + packages/vendor/.npmrc | 1 + 11 files changed, 14 insertions(+), 7 deletions(-) create mode 100644 .npmrc create mode 100644 packages/builder/.npmrc create mode 100644 packages/eslint-plugin-foreman/.npmrc create mode 100644 packages/eslint-plugin-rules/.npmrc create mode 100644 packages/test/.npmrc create mode 100644 packages/vendor-core/.npmrc create mode 100644 packages/vendor/.npmrc diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2682d9bf..02db8f67 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,7 +25,7 @@ jobs: git config --global user.name "foreman-js-bot" echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} > .npmrc - name: Install foreman-js npm dependencies - run: npm install --legacy-peer-deps + run: npm install - name: Publish to github env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/test-foreman-js.yml b/.github/workflows/test-foreman-js.yml index 910f8381..22ce6ddd 100644 --- a/.github/workflows/test-foreman-js.yml +++ b/.github/workflows/test-foreman-js.yml @@ -17,7 +17,7 @@ jobs: with: fetch-depth: 0 - name: Install foreman-js npm dependencies - run: npm install --legacy-peer-deps + run: npm install - name: Build foreman-js run: npm run build - name: Run foreman-js commit linter diff --git a/.github/workflows/test-with-foreman.yml b/.github/workflows/test-with-foreman.yml index 64d60c8d..4316967e 100644 --- a/.github/workflows/test-with-foreman.yml +++ b/.github/workflows/test-with-foreman.yml @@ -25,10 +25,10 @@ jobs: repository: theforeman/foreman path: ./projects/foreman - name: Install foreman-js npm dependencies - run: npm install --legacy-peer-deps + run: npm install working-directory: ${{ github.workspace }}/projects/foreman-js - name: Install foreman npm dependencies - run: npm install --legacy-peer-deps + run: npm install working-directory: ${{ github.workspace }}/projects/foreman - name: Link foreman-js to foreman run: npm run link -- --location '${{ github.workspace }}/projects/foreman' diff --git a/.github/workflows/test-with-plugins.yml b/.github/workflows/test-with-plugins.yml index 13c2d621..8b8f74fc 100644 --- a/.github/workflows/test-with-plugins.yml +++ b/.github/workflows/test-with-plugins.yml @@ -40,15 +40,15 @@ jobs: ref: ${{ matrix.ref }} path: ./projects/${{ matrix.repo }} - name: Install foreman-js npm dependencies - run: npm install --legacy-peer-deps + run: npm install working-directory: ${{ github.workspace }}/projects/foreman-js - name: Install foreman npm dependencies if: ${{ matrix.use-foreman }} - run: npm install --legacy-peer-deps + run: npm install working-directory: ${{ github.workspace }}/projects/foreman - name: Install ${{ matrix.repo }} npm dependencies if: ${{ matrix.repo != 'foreman' }} - run: npm install --legacy-peer-deps + run: npm install working-directory: ${{ github.workspace }}/projects/${{ matrix.repo }} - name: Link foreman-js to foreman if: ${{ matrix.use-foreman }} diff --git a/.npmrc b/.npmrc new file mode 100644 index 00000000..521a9f7c --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +legacy-peer-deps=true diff --git a/packages/builder/.npmrc b/packages/builder/.npmrc new file mode 100644 index 00000000..521a9f7c --- /dev/null +++ b/packages/builder/.npmrc @@ -0,0 +1 @@ +legacy-peer-deps=true diff --git a/packages/eslint-plugin-foreman/.npmrc b/packages/eslint-plugin-foreman/.npmrc new file mode 100644 index 00000000..521a9f7c --- /dev/null +++ b/packages/eslint-plugin-foreman/.npmrc @@ -0,0 +1 @@ +legacy-peer-deps=true diff --git a/packages/eslint-plugin-rules/.npmrc b/packages/eslint-plugin-rules/.npmrc new file mode 100644 index 00000000..521a9f7c --- /dev/null +++ b/packages/eslint-plugin-rules/.npmrc @@ -0,0 +1 @@ +legacy-peer-deps=true diff --git a/packages/test/.npmrc b/packages/test/.npmrc new file mode 100644 index 00000000..521a9f7c --- /dev/null +++ b/packages/test/.npmrc @@ -0,0 +1 @@ +legacy-peer-deps=true diff --git a/packages/vendor-core/.npmrc b/packages/vendor-core/.npmrc new file mode 100644 index 00000000..521a9f7c --- /dev/null +++ b/packages/vendor-core/.npmrc @@ -0,0 +1 @@ +legacy-peer-deps=true diff --git a/packages/vendor/.npmrc b/packages/vendor/.npmrc new file mode 100644 index 00000000..521a9f7c --- /dev/null +++ b/packages/vendor/.npmrc @@ -0,0 +1 @@ +legacy-peer-deps=true