Skip to content

Commit

Permalink
Ignoring NPM postinstall scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
brickpop committed Feb 11, 2025
1 parent a50e0a9 commit a2a25d5
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/contracts-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/formatting-linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/subgraph-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -81,7 +81,7 @@ This package is located in `packages/contracts`.
### Install Dependencies

```sh
yarn install
yarn --ignore-scripts
```

### Building
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/artifacts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down
2 changes: 1 addition & 1 deletion packages/artifacts/prepare-abi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a2a25d5

Please sign in to comment.