Skip to content

Non-reproducible builds in mono-repo setups #14

@0xmichalis

Description

@0xmichalis

The action as it is currently set up, is not suitable for a mono-repo where the dependency lock file exists at the top-level of the repo and the target directory where the contracts live is nested because of

pushd "$TARGET" >/dev/null
# JS dependencies
if [[ -f package-lock.json ]]; then
echo "[-] Installing dependencies from package-lock.json"
npm ci
elif [[ -f yarn.lock ]]; then
echo "[-] Installing dependencies from yarn.lock"
npm install -g yarn
yarn install --frozen-lockfile
elif [[ -f package.json ]]; then
echo "[-] Did not detect a package-lock.json or yarn.lock in $TARGET, consider locking your dependencies!"
echo "[-] Proceeding with 'npm i' to install dependencies"
npm i
.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions