From 90577fda151f15f55ad0e571d8d4c0a06cc8f2cc Mon Sep 17 00:00:00 2001 From: yuetloo Date: Fri, 17 May 2024 15:11:58 -0400 Subject: [PATCH] use ethers 6.12.1 --- .github/workflows/create-version.yml | 45 ++++++++++++++++++++++++++++ package.json | 2 +- yarn.lock | 18 +++++------ 3 files changed, 55 insertions(+), 10 deletions(-) create mode 100644 .github/workflows/create-version.yml diff --git a/.github/workflows/create-version.yml b/.github/workflows/create-version.yml new file mode 100644 index 0000000..17380b2 --- /dev/null +++ b/.github/workflows/create-version.yml @@ -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 diff --git a/package.json b/package.json index 040661d..83db87a 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/yarn.lock b/yarn.lock index 609f5ac..75f33a0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,10 +2,10 @@ # yarn lockfile v1 -"@adraffy/ens-normalize@1.10.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/ens-normalize@1.10.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" @@ -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"