Skip to content

Commit

Permalink
use ethers 6.12.1
Browse files Browse the repository at this point in the history
  • Loading branch information
yuetloo committed May 17, 2024
1 parent 1815038 commit 90577fd
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 10 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/create-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Create Version

on:
workflow_dispatch:
inputs:
version:
type: choice
description: major, minor, or patch version
options:
- patch
- minor
- major

env:
NODE_VERSION: 20.x

jobs:
createVersion:
runs-on: ubuntu-22.04
steps:
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
- name: Checkout source code
uses: actions/checkout@v3
- name: Install dependencies
run: |
yarn && yarn build
- name: setup git config
run: |
# setup the username and email. I tend to use 'GitHub Actions Bot' with no email by default
git config user.name "GitHub Actions Bot"
git config user.email "<>"
- name: Create new version
run: |
echo "Version: ${{ github.event.inputs.version }}"
npm version ${{ github.event.inputs.version }}
export VERSION_NUMBER=$(node -e "const pkg=require('./package.json'); console.log(pkg.version)")
export VERSION="v${VERSION_NUMBER}"
git add package.json
git commit -m "${VERSION}"
git push origin
git tag -a "${VERSION}" -m "${VERSION}"
git push origin --tags
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"default": "dist/cjs/src/index.js"
},
"dependencies": {
"ethers": "^6.9.2"
"ethers": "^6.12.1"
},
"devDependencies": {
"@nomicfoundation/hardhat-chai-matchers": "^2.0.3",
Expand Down
18 changes: 9 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# yarn lockfile v1


"@adraffy/[email protected].0":
version "1.10.0"
resolved "https://registry.yarnpkg.com/@adraffy/ens-normalize/-/ens-normalize-1.10.0.tgz#d2a39395c587e092d77cbbc80acf956a54f38bf7"
integrity sha512-nA9XHtlAkYfJxY7bce8DcN7eKxWWCWkU+1GR9d+U6MbNpfwQp8TI7vqOsBsMcHoT4mBu2kypKoSKnghEzOOq5Q==
"@adraffy/[email protected].1":
version "1.10.1"
resolved "https://registry.yarnpkg.com/@adraffy/ens-normalize/-/ens-normalize-1.10.1.tgz#63430d04bd8c5e74f8d7d049338f1cd9d4f02069"
integrity sha512-96Z2IP3mYmF1Xg2cDm8f1gWGf/HUVedQ3FMifV4kG/PQ4yEP51xDtRAEfhVNt5f/uzpNkZHwWQuUcu6D6K+Ekw==

"@chainsafe/as-sha256@^0.3.1":
version "0.3.1"
Expand Down Expand Up @@ -1503,12 +1503,12 @@ ethers@^5.7.1:
"@ethersproject/web" "5.7.1"
"@ethersproject/wordlists" "5.7.0"

ethers@^6.9.2:
version "6.10.0"
resolved "https://registry.yarnpkg.com/ethers/-/ethers-6.10.0.tgz#20f3c63c60d59a993f8090ad423d8a3854b3b1cd"
integrity sha512-nMNwYHzs6V1FR3Y4cdfxSQmNgZsRj1RiTU25JwvnJLmyzw9z3SKxNc2XKDuiXXo/v9ds5Mp9m6HBabgYQQ26tA==
ethers@^6.12.1:
version "6.12.1"
resolved "https://registry.yarnpkg.com/ethers/-/ethers-6.12.1.tgz#517ff6d66d4fd5433e38e903051da3e57c87ff37"
integrity sha512-j6wcVoZf06nqEcBbDWkKg8Fp895SS96dSnTCjiXT+8vt2o02raTn4Lo9ERUuIVU5bAjoPYeA+7ytQFexFmLuVw==
dependencies:
"@adraffy/ens-normalize" "1.10.0"
"@adraffy/ens-normalize" "1.10.1"
"@noble/curves" "1.2.0"
"@noble/hashes" "1.3.2"
"@types/node" "18.15.13"
Expand Down

0 comments on commit 90577fd

Please sign in to comment.