Skip to content

Commit

Permalink
Merge pull request #14875 from ethereum/ext-test-hardhat-latest-release
Browse files Browse the repository at this point in the history
Build hardhat from latest release in t_ems_ext_hardhat
  • Loading branch information
ekpyron authored Feb 21, 2024
2 parents 9f0c222 + 1185ad0 commit c130163
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1386,7 +1386,31 @@ jobs:
- checkout
- attach_workspace:
at: /tmp/workspace
- run: git clone --depth 1 https://github.com/nomiclabs/hardhat.git
- run:
name: Ensure pnpm is installed if npm is present
command: |
if command -v npm &> /dev/null; then
sudo npm install -g pnpm
fi
- run:
name: Retrieve Hardhat latest release tag
command: |
# Make authenticated requests when the Github token is available
if [[ -n "$GITHUB_ACCESS_TOKEN" ]]; then
EXTRA_HEADERS=(--header 'Authorization: Bearer '"${GITHUB_ACCESS_TOKEN}")
fi
HARDHAT_RELEASE_TAG=$(
curl \
--silent \
--location \
--fail \
--show-error \
"${EXTRA_HEADERS[@]}" \
https://api.github.com/repos/nomiclabs/hardhat/releases/latest \
| jq --raw-output .tag_name \
)
echo "export HARDHAT_RELEASE_TAG='${HARDHAT_RELEASE_TAG}'" >> "$BASH_ENV"
- run: git clone --depth 1 https://github.com/nomiclabs/hardhat.git --branch $HARDHAT_RELEASE_TAG
- run:
name: Install dependencies
command: |
Expand Down

0 comments on commit c130163

Please sign in to comment.