From a2a25d5a93c1b6d00b5038147295392c4fab4294 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8r=E2=88=82=C2=A1?= Date: Tue, 11 Feb 2025 11:57:56 +0000 Subject: [PATCH] Ignoring NPM postinstall scripts --- .github/workflows/contracts-tests.yml | 2 +- .github/workflows/formatting-linting.yml | 2 +- .github/workflows/subgraph-tests.yml | 6 +++--- README.md | 6 +++--- packages/artifacts/README.md | 2 +- packages/artifacts/prepare-abi.sh | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/contracts-tests.yml b/.github/workflows/contracts-tests.yml index fb34a28e..22a783ce 100644 --- a/.github/workflows/contracts-tests.yml +++ b/.github/workflows/contracts-tests.yml @@ -26,7 +26,7 @@ jobs: node-version: 18 - name: 'Install the dependencies' - run: 'yarn install --frozen-lockfile' + run: 'yarn install --frozen-lockfile --ignore-scripts' - name: 'Build the contracts' run: 'yarn build' diff --git a/.github/workflows/formatting-linting.yml b/.github/workflows/formatting-linting.yml index 4552e7a2..ef3f68c6 100644 --- a/.github/workflows/formatting-linting.yml +++ b/.github/workflows/formatting-linting.yml @@ -19,7 +19,7 @@ jobs: node-version: 18 - name: 'Install the dependencies' - run: 'yarn install --frozen-lockfile' + run: 'yarn install --frozen-lockfile --ignore-scripts' - name: 'Check code formatting' run: 'yarn prettier:check' diff --git a/.github/workflows/subgraph-tests.yml b/.github/workflows/subgraph-tests.yml index ef013b86..3eac01c5 100644 --- a/.github/workflows/subgraph-tests.yml +++ b/.github/workflows/subgraph-tests.yml @@ -25,15 +25,15 @@ jobs: node-version: 18 - name: 'Install root dependencies' - run: 'yarn install --frozen-lockfile' + run: 'yarn install --frozen-lockfile --ignore-scripts' working-directory: . - name: 'Install dependencies for contracts' - run: 'yarn install --frozen-lockfile' + run: 'yarn install --frozen-lockfile --ignore-scripts' working-directory: packages/contracts - name: 'Install the dependencies for subgraph' - run: 'yarn install --frozen-lockfile' + run: 'yarn install --frozen-lockfile --ignore-scripts' working-directory: packages/subgraph - name: 'Build the subgraph' diff --git a/README.md b/README.md index 9a2656fd..dd459535 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ The root folder of the repo includes two subfolders: The root-level `package.json` file contains global `dev-dependencies` for formatting and linting. After installing the dependencies with ```sh -yarn install +yarn --ignore-scripts ``` you can run the associated [formatting](#formatting) and [linting](#linting) commands. @@ -81,7 +81,7 @@ This package is located in `packages/contracts`. ### Install Dependencies ```sh -yarn install +yarn --ignore-scripts ``` ### Building @@ -237,7 +237,7 @@ yarn deploy:zksync --network zksyncMainnet --tags ... In `packages/subgraph`, first run ```sh -yarn install +yarn --ignore-scripts ``` which will also run diff --git a/packages/artifacts/README.md b/packages/artifacts/README.md index 9cd2b3ca..d85292be 100644 --- a/packages/artifacts/README.md +++ b/packages/artifacts/README.md @@ -29,7 +29,7 @@ You can also open [addresses.json](./src/addresses.json) directly. Install the dependencies and generate the local ABI definitions. ```sh -yarn install +yarn --ignore-scripts yarn build ``` diff --git a/packages/artifacts/prepare-abi.sh b/packages/artifacts/prepare-abi.sh index 10ae8cfa..a0a9e71b 100644 --- a/packages/artifacts/prepare-abi.sh +++ b/packages/artifacts/prepare-abi.sh @@ -10,7 +10,7 @@ TARGET_ABI_FILE="./src/abi.ts" # Move into contracts package and install dependencies cd $CONTRACTS_FOLDER -yarn install && yarn build +yarn --ignore-scripts && yarn build # Move back to artifacts package cd - > /dev/null