Skip to content

Commit

Permalink
fix(ci): l1-contracts npm release (#3596)
Browse files Browse the repository at this point in the history
  • Loading branch information
spypsy authored Dec 6, 2023
1 parent d427bca commit 008df50
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
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

0 comments on commit 008df50

Please sign in to comment.