Skip to content

Commit

Permalink
chore: deploy canary release of bb.js to npm via CCI (#3917)
Browse files Browse the repository at this point in the history
This PR releases bb.js npm via CCI under the `canary` tag, while
maintaining the release via Github Actions under the `latest` tag. They
should be identical. Once we are confident in the release via CCI, we
can deploy both `canary` and `latest` from CCI in a followup PR.

Also add check_env script during setup_env to ensure the version of bash
is high enough.
  • Loading branch information
just-mitch authored Jan 11, 2024
1 parent 34fad0a commit bdeb10c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -997,6 +997,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

0 comments on commit bdeb10c

Please sign in to comment.