diff --git a/.github/workflows/yarn/action.yml b/.github/workflows/yarn/action.yml index 4d3112fa22..bff04d3a30 100644 --- a/.github/workflows/yarn/action.yml +++ b/.github/workflows/yarn/action.yml @@ -13,3 +13,6 @@ runs: - name: Yarn install shell: bash run: yarn install --frozen-lockfile + - name: Yarn after install + shell: bash + run: yarn after-install diff --git a/package.json b/package.json index 888c688f41..aeff2efc9d 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,8 @@ "routes": "node scripts/generate-routes.js > src/config/routes.ts && prettier -w src/config/routes.ts && cat src/config/routes.ts", "css-vars": "ts-node-esm ./scripts/css-vars.ts > ./src/styles/vars.css && prettier -w src/styles/vars.css", "generate-types": "typechain --target ethers-v5 --out-dir src/types/contracts ./node_modules/@safe-global/safe-deployments/dist/assets/**/*.json ./node_modules/@safe-global/safe-modules-deployments/dist/assets/**/*.json ./node_modules/@openzeppelin/contracts/build/contracts/ERC20.json ./node_modules/@openzeppelin/contracts/build/contracts/ERC721.json", - "postinstall": "yarn patch-package && yarn generate-types && yarn css-vars", + "after-install": "yarn patch-package && yarn generate-types && yarn css-vars", + "postinstall": "yarn after-install", "analyze": "cross-env ANALYZE=true yarn build", "cypress:open": "cross-env TZ=UTC cypress open --e2e", "cypress:canary": "cross-env TZ=UTC cypress open --e2e -b chrome:canary",