Skip to content
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
30 changes: 30 additions & 0 deletions .github/workflows/release-node-alpha.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# creates a new npm release
name: release

on:
workflow_call:
secrets:
NODE_AUTH_TOKEN:
required: true

jobs:
release-alpha:
if: |
github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: bgd-labs/github-workflows/.github/actions/setup-node@main

- name: install standard
run: npm i -g standard-version

- name: release
run: |
standard-version --prerelease ${{ github.sha }} --skip.changelog --skip.commit --skip.tag

- name: Publish
run: npm run ci:publish:beta
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
25 changes: 25 additions & 0 deletions .github/workflows/release-node.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# creates a new npm release
name: release

on:
workflow_call:
secrets:
NODE_AUTH_TOKEN:
required: true

jobs:
release:
if: |
github.event_name == 'push' &&
github.ref == format('refs/heads/{0}', github.event.repository.default_branch) &&
contains(github.event.head_commit.message, 'chore(main): release')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: bgd-labs/github-workflows/.github/actions/setup-node@main

- name: Publish
run: npm run ci:publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
pull-request-header: "I have created a release"

release-node:
uses: bgd-labs/github-workflows/.github/workflows/release-node.yml@main
uses: bgd-labs/aave-governance-ui-helpers/.github/workflows/release-node.yml@main
if: ${{ needs.release-please.outputs.releaseCreated }}
needs:
- release-please
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-release-alpha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ on:

jobs:
release-node-alpha:
uses: bgd-labs/github-workflows/.github/workflows/release-node-alpha.yml@main
uses: bgd-labs/aave-governance-ui-helpers/.github/workflows/release-node-alpha.yml@main
secrets:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
20
35 changes: 18 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"build": "tsup",
"cache:update": "VERBOSE=true tsx src/scripts/update-cache.ts",
"cache:parse": "VERBOSE=true tsx src/scripts/parse-cache.ts",
"ci:publish": "npm run build && npm publish --access=public"
"ci:publish": "npm run build && npm publish --access=public",
"ci:publish:beta": "npm run build && npm publish --tag beta --access=public"
},
"files": [
"dist"
Expand All @@ -46,27 +47,27 @@
},
"devDependencies": {
"@bgd-labs/aave-address-book": "^4.8.1",
"@bgd-labs/js-utils": "^1.4.2",
"@types/lodash": "^4.17.10",
"@types/node": "^22.7.5",
"@bgd-labs/js-utils": "^1.4.7",
"@types/lodash": "^4.17.15",
"@types/node": "^22.12.0",
"bignumber.js": "^9.1.2",
"dotenv": "^16.4.5",
"eslint": "^9.12.0",
"eslint-config-prettier": "^9.1.0",
"dotenv": "^16.4.7",
"eslint": "^9.19.0",
"eslint-config-prettier": "^10.0.1",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-react": "^7.37.1",
"eslint-plugin-react-hooks": "^5.0.0",
"eslint-plugin-prettier": "^5.2.3",
"eslint-plugin-react": "^7.37.4",
"eslint-plugin-react-hooks": "^5.1.0",
"eslint-plugin-simple-import-sort": "^12.1.1",
"ethers": "5",
"globals": "^15.11.0",
"globals": "^15.14.0",
"lodash": "^4.17.21",
"prettier": "^3.3.3",
"tsup": "^8.3.0",
"tsx": "^4.19.1",
"typescript": "^5.6.3",
"typescript-eslint": "^8.9.0",
"viem": "^2.21.27"
"prettier": "^3.4.2",
"tsup": "^8.3.6",
"tsx": "^4.19.2",
"typescript": "^5.7.3",
"typescript-eslint": "^8.22.0",
"viem": "^2.22.16"
},
"dependencies": {
"abitype": "^1.0.8",
Expand Down
38 changes: 19 additions & 19 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
resolved "https://registry.yarnpkg.com/@bgd-labs/aave-address-book/-/aave-address-book-4.8.1.tgz#3c8b97c24770df3e3e965e58932b7f0a40e3b706"
integrity sha512-t0Qz6lycoxVgoa9Jhx3t80CpZfQJD9yIH1tY22eGeN0Li2nFG9Y+XX3i3UQrzqZH613RymtyLHS4WXqVpZu4LA==

"@bgd-labs/js-utils@^1.4.2":
"@bgd-labs/js-utils@^1.4.7":
version "1.4.7"
resolved "https://registry.yarnpkg.com/@bgd-labs/js-utils/-/js-utils-1.4.7.tgz#b011cdb4573d69951ded73006ded692318e71ae9"
integrity sha512-rv8VZkNQlt71LPqveo1o/LMilq6XRS3gTJeDaoDCUtzFpv16S9PqZe92uoYLatUhhSvBEXKMmjnOoW/WbMsdVQ==
Expand Down Expand Up @@ -933,12 +933,12 @@
resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee"
integrity sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==

"@types/lodash@^4.17.10":
"@types/lodash@^4.17.15":
version "4.17.15"
resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.17.15.tgz#12d4af0ed17cc7600ce1f9980cec48fc17ad1e89"
integrity sha512-w/P33JFeySuhN6JLkysYUK2gEmy9kHHFN7E8ro0tkfmlDOgxBDzWEZ/J8cWA+fHqFevpswDTFZnDx+R9lbL6xw==

"@types/node@^22.7.5":
"@types/node@^22.12.0":
version "22.12.0"
resolved "https://registry.yarnpkg.com/@types/node/-/node-22.12.0.tgz#bf8af3b2af0837b5a62a368756ff2b705ae0048c"
integrity sha512-Fll2FZ1riMjNmlmJOdAyY5pUbkftXslB5DgEzlIuNaiWhXd00FhWxVC/r4yV/4wBb9JfImTu+jiSvXTkJ7F/gA==
Expand Down Expand Up @@ -1532,7 +1532,7 @@ doctrine@^2.1.0:
dependencies:
esutils "^2.0.2"

dotenv@^16.4.5:
dotenv@^16.4.7:
version "16.4.7"
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.4.7.tgz#0e20c5b82950140aa99be360a8a5f52335f53c26"
integrity sha512-47qPchRCykZC03FhkYAhrvwU4xDBFIj1QPqaarj6mdM/hgUzfPHcpkHJOn3mJAufFeeAxAzeGsr5X0M4k6fLZQ==
Expand Down Expand Up @@ -1838,10 +1838,10 @@ escape-string-regexp@^4.0.0:
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34"
integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==

eslint-config-prettier@^9.1.0:
version "9.1.0"
resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz#31af3d94578645966c082fcb71a5846d3c94867f"
integrity sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==
eslint-config-prettier@^10.0.1:
version "10.0.1"
resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-10.0.1.tgz#fbb03bfc8db0651df9ce4e8b7150d11c5fe3addf"
integrity sha512-lZBts941cyJyeaooiKxAtzoPHTN+GbQTJFAIdQbRhA4/8whaAraEh47Whw/ZFfrjNSnlAxqfm9i0XVAEkULjCw==

eslint-import-resolver-node@^0.3.9:
version "0.3.9"
Expand Down Expand Up @@ -1884,20 +1884,20 @@ eslint-plugin-import@^2.31.0:
string.prototype.trimend "^1.0.8"
tsconfig-paths "^3.15.0"

eslint-plugin-prettier@^5.2.1:
eslint-plugin-prettier@^5.2.3:
version "5.2.3"
resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-5.2.3.tgz#c4af01691a6fa9905207f0fbba0d7bea0902cce5"
integrity sha512-qJ+y0FfCp/mQYQ/vWQ3s7eUlFEL4PyKfAJxsnYTJ4YT73nsJBWqmEpFryxV9OeUiqmsTsYJ5Y+KDNaeP31wrRw==
dependencies:
prettier-linter-helpers "^1.0.0"
synckit "^0.9.1"

eslint-plugin-react-hooks@^5.0.0:
eslint-plugin-react-hooks@^5.1.0:
version "5.1.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-5.1.0.tgz#3d34e37d5770866c34b87d5b499f5f0b53bf0854"
integrity sha512-mpJRtPgHN2tNAvZ35AMfqeB3Xqeo273QxrHJsbBEPWODRM4r0yB6jfoROqKEYrOn27UtRPpcpHc2UqyBSuUNTw==

eslint-plugin-react@^7.37.1:
eslint-plugin-react@^7.37.4:
version "7.37.4"
resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.37.4.tgz#1b6c80b6175b6ae4b26055ae4d55d04c414c7181"
integrity sha512-BGP0jRmfYyvOyvMoRX/uoUeW+GqNj9y16bPQzqAHf3AYII/tDs+jMN0dBVkl88/OZwNGwrVFxE7riHsXVfy/LQ==
Expand Down Expand Up @@ -1949,7 +1949,7 @@ eslint-visitor-keys@^4.2.0:
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz#687bacb2af884fcdda8a6e7d65c606f46a14cd45"
integrity sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==

eslint@^9.12.0:
eslint@^9.19.0:
version "9.19.0"
resolved "https://registry.yarnpkg.com/eslint/-/eslint-9.19.0.tgz#ffa1d265fc4205e0f8464330d35f09e1d548b1bf"
integrity sha512-ug92j0LepKlbbEv6hD911THhoRHmbdXt2gX+VDABAW/Ir7D3nqKdv5Pf5vtlyY6HQMTEP2skXY43ueqTCWssEA==
Expand Down Expand Up @@ -2305,7 +2305,7 @@ globals@^14.0.0:
resolved "https://registry.yarnpkg.com/globals/-/globals-14.0.0.tgz#898d7413c29babcf6bafe56fcadded858ada724e"
integrity sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==

globals@^15.11.0:
globals@^15.14.0:
version "15.14.0"
resolved "https://registry.yarnpkg.com/globals/-/globals-15.14.0.tgz#b8fd3a8941ff3b4d38f3319d433b61bbb482e73f"
integrity sha512-OkToC372DtlQeje9/zHIo5CT8lRP/FUgEOKBEhU4e0abL7J7CD24fD9ohiLN5hagG/kWCYj4K5oaxxtj2Z0Dig==
Expand Down Expand Up @@ -3182,7 +3182,7 @@ prettier-linter-helpers@^1.0.0:
dependencies:
fast-diff "^1.1.2"

prettier@^3.3.3:
prettier@^3.4.2:
version "3.4.2"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.4.2.tgz#a5ce1fb522a588bf2b78ca44c6e6fe5aa5a2b13f"
integrity sha512-e9MewbtFo+Fevyuxn/4rrcDAaq0IYxPGLvObpQjiZBMAzB9IGmzlnG9RZy3FFas+eBMu2vA0CszMeduow5dIuQ==
Expand Down Expand Up @@ -3750,7 +3750,7 @@ tslib@^2.6.2:
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.8.0.tgz#d124c86c3c05a40a91e6fdea4021bd31d377971b"
integrity sha512-jWVzBLplnCmoaTr13V9dYbiQ99wvZRd0vNWaDRg+aVYRcjDF3nDksxFDE/+fkXnKhpnUUkmx5pK/v8mCtLVqZA==

tsup@^8.3.0:
tsup@^8.3.6:
version "8.3.6"
resolved "https://registry.yarnpkg.com/tsup/-/tsup-8.3.6.tgz#a10eb2dc27f84b510a0f00341ab75cad03d13a88"
integrity sha512-XkVtlDV/58S9Ye0JxUUTcrQk4S+EqlOHKzg6Roa62rdjL1nGWNUstG0xgI4vanHdfIpjP448J8vlN0oK6XOJ5g==
Expand All @@ -3772,7 +3772,7 @@ tsup@^8.3.0:
tinyglobby "^0.2.9"
tree-kill "^1.2.2"

tsx@^4.19.1:
tsx@^4.19.2:
version "4.19.2"
resolved "https://registry.yarnpkg.com/tsx/-/tsx-4.19.2.tgz#2d7814783440e0ae42354d0417d9c2989a2ae92c"
integrity sha512-pOUl6Vo2LUq/bSa8S5q7b91cgNSjctn9ugq/+Mvow99qW6x/UZYwzxy/3NmqoT66eHYfCVvFvACC58UBPFf28g==
Expand Down Expand Up @@ -3888,7 +3888,7 @@ typed-array-length@^1.0.7:
possible-typed-array-names "^1.0.0"
reflect.getprototypeof "^1.0.6"

typescript-eslint@^8.9.0:
typescript-eslint@^8.22.0:
version "8.22.0"
resolved "https://registry.yarnpkg.com/typescript-eslint/-/typescript-eslint-8.22.0.tgz#1d4becf1d65385e57e9271fbd557ccc22f6c0f53"
integrity sha512-Y2rj210FW1Wb6TWXzQc5+P+EWI9/zdS57hLEc0gnyuvdzWo8+Y8brKlbj0muejonhMI/xAZCnZZwjbIfv1CkOw==
Expand All @@ -3897,7 +3897,7 @@ typescript-eslint@^8.9.0:
"@typescript-eslint/parser" "8.22.0"
"@typescript-eslint/utils" "8.22.0"

typescript@^5.6.3:
typescript@^5.7.3:
version "5.7.3"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.7.3.tgz#919b44a7dbb8583a9b856d162be24a54bf80073e"
integrity sha512-84MVSjMEHP+FQRPy3pX9sTVV/INIex71s9TL2Gm5FG/WG1SqXeKyZ0k7/blY/4FdOzI12CBy1vGc4og/eus0fw==
Expand Down Expand Up @@ -3934,7 +3934,7 @@ uri-js@^4.2.2:
dependencies:
punycode "^2.1.0"

viem@^2.21.27:
viem@^2.22.16:
version "2.22.16"
resolved "https://registry.yarnpkg.com/viem/-/viem-2.22.16.tgz#f23e3a92284df3d05434d21fbf40b76b8f0b01b6"
integrity sha512-Eb4Ggna2fblb0oHBmy5XZ3Q4cN6fEmKxVpIWHjmAbtYVC9IfbZ28Z1/yZP2oOgvyRrostNndmnR298pgarBVGw==
Expand Down