Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ci): l1-contracts npm release #3596

Merged
merged 11 commits into from
Dec 6, 2023
2 changes: 1 addition & 1 deletion build-system/scripts/extract_repo
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ TEMP_CONTAINER=$(docker create $IMAGE_COMMIT_URI)
echo "Extracting $EXTRACT_FROM from $REPOSITORY to $EXTRACT_TO..."
mkdir -p $EXTRACT_TO
docker cp $TEMP_CONTAINER:$EXTRACT_FROM $EXTRACT_TO
docker rm -v $TEMP_CONTAINER > /dev/null
docker rm -v $TEMP_CONTAINER >/dev/null

echo "Extracted contents:"
ls -al $EXTRACT_TO
14 changes: 4 additions & 10 deletions yarn-project/deploy_npm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@ if [ -z "$COMMIT_TAG" ]; then
exit 0
fi

extract_repo yarn-project /usr/src project
extract_repo yarn-project-prod /usr/src project
cd project/src/yarn-project

echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >.npmrc
# also copy npcrc into the l1-contracts directory
cp .npmrc ../l1-contracts

# This is to be used with the 'canary' tag for testing, and then 'latest' for making it public
DIST_TAG=${1:-"latest"}
Expand Down Expand Up @@ -70,12 +68,8 @@ function deploy_package() {
fi
fi

# Back to root
if [ "$REPOSITORY" == "../l1-contracts" ]; then
cd ../yarn-project
else
cd ..
fi
# Return to root
cd ..
}

# New packages here should be added after the last package that they depend on
Expand All @@ -98,4 +92,4 @@ deploy_package p2p
deploy_package world-state
deploy_package sequencer-client
deploy_package aztec-node
deploy_package aztec-sandbox
deploy_package aztec-sandbox