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

chore: deploy canary release of bb.js to npm via CCI #3917

Merged
merged 2 commits into from
Jan 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -969,6 +969,11 @@ jobs:
deploy_dockerhub cli
deploy_dockerhub aztec-faucet
deploy_dockerhub mainnet-fork
- run:
name: "Release canary to NPM: bb.js"
command: |
should_release || exit 0
deploy_npm bb.js canary
- run:
name: "Release canary to NPM: yarn-project"
command: |
Expand Down
14 changes: 14 additions & 0 deletions build-system/scripts/check_env
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash
# check that the current system is able to run the build system.

[ -n "${BUILD_SYSTEM_DEBUG:-}" ] && set -x # conditionally trace
set -eu

# check that our bash version is new enough.
major_version=${BASH_VERSION%%.*}

# Check if the major version is less than 4
if [[ $major_version -lt 4 ]]; then
echo "Bash version 4 or greater is required."
exit 1
fi
2 changes: 2 additions & 0 deletions build-system/scripts/setup_env
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ PROJECT=$(cat $ROOT_PATH/PROJECT)
COMMIT_MESSAGE=$(git log -n 1 --pretty=format:"%s" $COMMIT_HASH)
PATH=$PATH:$BUILD_SYSTEM_PATH/scripts

check_env

export BRANCH

echo "COMMIT_HASH=$COMMIT_HASH"
Expand Down