From 289484648b490bd90fee784f33f20fabd528b42a Mon Sep 17 00:00:00 2001 From: Reza Rahemtola Date: Thu, 1 Aug 2024 03:21:41 +0200 Subject: [PATCH] ci: Fix caching and running on every push --- .github/workflows/build.yaml | 21 ++--- .github/workflows/fmt.yaml | 21 ++--- .github/workflows/lint.yaml | 21 ++--- package-lock.json | 154 +++++++++++++++++++++++------------ package.json | 8 +- 5 files changed, 121 insertions(+), 104 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 74c8730..d399879 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -1,28 +1,17 @@ name: Build -on: - push: - branches: ["main"] - pull_request: - branches: ["main"] +on: push jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Use Node.js 18 - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version: 18 - - name: Cache dependencies - uses: actions/cache@v3 - with: - path: ~/.cache/npm - key: ${{ runner.OS }}-npm-${{ hashFiles('**/npm.lock') }} - restore-keys: | - ${{ runner.OS }}-npm- + node-version: 20 + cache: 'npm' - name: Install dependencies run: npm install - name: Build diff --git a/.github/workflows/fmt.yaml b/.github/workflows/fmt.yaml index 7295a65..8d5e04a 100644 --- a/.github/workflows/fmt.yaml +++ b/.github/workflows/fmt.yaml @@ -1,28 +1,17 @@ name: FormatCheck -on: - push: - branches: ["main"] - pull_request: - branches: ["main"] +on: push jobs: format-check: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Use Node.js 18 - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version: 18 - - name: Cache dependencies - uses: actions/cache@v3 - with: - path: ~/.cache/npm - key: ${{ runner.OS }}-npm-${{ hashFiles('**/npm.lock') }} - restore-keys: | - ${{ runner.OS }}-npm- + node-version: 20 + cache: 'npm' - name: Install dependencies run: npm install - name: Lint diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 4611dff..b98ca93 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -1,28 +1,17 @@ name: Lint -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] +on: push jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Use Node.js 18 - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version: 18 - - name: Cache dependencies - uses: actions/cache@v3 - with: - path: ~/.cache/yarn - key: ${{ runner.OS }}-yarn-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.OS }}-yarn- + node-version: 20 + cache: 'npm' - name: Install dependencies run: npm install - name: Lint diff --git a/package-lock.json b/package-lock.json index c5b928f..3adcaae 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,7 +14,7 @@ "@aleph-sdk/message": "^1.0.7", "@libertai/libertai-js": "0.0.9", "@quasar/extras": "^1.16.12", - "@tanstack/vue-query": "^5.51.15", + "@tanstack/vue-query": "^5.51.16", "@wagmi/vue": "^0.0.34", "axios": "^1.7.2", "dayjs": "^1.11.12", @@ -31,9 +31,9 @@ "quasar": "^2.16.6", "stream": "^0.0.3", "uuid": "^10.0.0", - "viem": "^2.18.5", - "vue": "^3.4.34", - "vue-router": "^4.4.0", + "viem": "^2.18.6", + "vue": "^3.4.35", + "vue-router": "^4.4.1", "web3": "^4.11.1", "zod": "^3.23.8" }, @@ -6192,9 +6192,9 @@ } }, "node_modules/@tanstack/query-core": { - "version": "5.51.15", - "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.51.15.tgz", - "integrity": "sha512-xyobHDJ0yhPE3+UkSQ2/4X1fLSg7ICJI5J1JyU9yf7F3deQfEwSImCDrB1WSRrauJkMtXW7YIEcC0oA6ZZWt5A==", + "version": "5.51.16", + "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.51.16.tgz", + "integrity": "sha512-zfV+WAtBGm1dUIbL0w/x8qTqVLKU1/Bo1p19J9LF02MmIc4FxzMImMXhFzYJQl5Hx8Wit6RiQ4tB/DvN8y9zaQ==", "license": "MIT", "funding": { "type": "github", @@ -6202,15 +6202,15 @@ } }, "node_modules/@tanstack/vue-query": { - "version": "5.51.15", - "resolved": "https://registry.npmjs.org/@tanstack/vue-query/-/vue-query-5.51.15.tgz", - "integrity": "sha512-pgGXACiaRqw93S9X0b8s1MBtXt9be3XJmULXFzkhnEZK1qKXDOp+pttjhv7SO0Lb0LbN6txoQxWE8Faj7AwdEw==", + "version": "5.51.16", + "resolved": "https://registry.npmjs.org/@tanstack/vue-query/-/vue-query-5.51.16.tgz", + "integrity": "sha512-IPBw2igUk8MXvmbRTyhbpyp0MR/xKSqrOp8FAUBoy30dJzo6p8trKm0FSZqVBvxLfhmGIsejcFss12AndquCPA==", "license": "MIT", "dependencies": { "@tanstack/match-sorter-utils": "^8.15.1", - "@tanstack/query-core": "5.51.15", - "@vue/devtools-api": "^6.5.1", - "vue-demi": "^0.14.7" + "@tanstack/query-core": "5.51.16", + "@vue/devtools-api": "^6.6.3", + "vue-demi": "^0.14.10" }, "funding": { "type": "github", @@ -6226,6 +6226,32 @@ } } }, + "node_modules/@tanstack/vue-query/node_modules/vue-demi": { + "version": "0.14.10", + "resolved": "https://registry.npmjs.org/vue-demi/-/vue-demi-0.14.10.tgz", + "integrity": "sha512-nMZBOwuzabUO0nLgIcc6rycZEebF6eeUfaiQx9+WSk8e29IbLvPU9feI6tqW4kTo3hvoYAJkMh8n8D0fuISphg==", + "hasInstallScript": true, + "license": "MIT", + "bin": { + "vue-demi-fix": "bin/vue-demi-fix.js", + "vue-demi-switch": "bin/vue-demi-switch.js" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + }, + "peerDependencies": { + "@vue/composition-api": "^1.0.0-rc.1", + "vue": "^3.0.0-0 || ^2.6.0" + }, + "peerDependenciesMeta": { + "@vue/composition-api": { + "optional": true + } + } + }, "node_modules/@types/bn.js": { "version": "5.1.5", "resolved": "https://registry.npmjs.org/@types/bn.js/-/bn.js-5.1.5.tgz", @@ -6750,45 +6776,53 @@ } }, "node_modules/@vue/compiler-core": { - "version": "3.4.34", + "version": "3.4.35", + "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.4.35.tgz", + "integrity": "sha512-gKp0zGoLnMYtw4uS/SJRRO7rsVggLjvot3mcctlMXunYNsX+aRJDqqw/lV5/gHK91nvaAAlWFgdVl020AW1Prg==", "license": "MIT", "dependencies": { "@babel/parser": "^7.24.7", - "@vue/shared": "3.4.34", + "@vue/shared": "3.4.35", "entities": "^4.5.0", "estree-walker": "^2.0.2", "source-map-js": "^1.2.0" } }, "node_modules/@vue/compiler-dom": { - "version": "3.4.34", + "version": "3.4.35", + "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.4.35.tgz", + "integrity": "sha512-pWIZRL76/oE/VMhdv/ovZfmuooEni6JPG1BFe7oLk5DZRo/ImydXijoZl/4kh2406boRQ7lxTYzbZEEXEhj9NQ==", "license": "MIT", "dependencies": { - "@vue/compiler-core": "3.4.34", - "@vue/shared": "3.4.34" + "@vue/compiler-core": "3.4.35", + "@vue/shared": "3.4.35" } }, "node_modules/@vue/compiler-sfc": { - "version": "3.4.34", + "version": "3.4.35", + "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.4.35.tgz", + "integrity": "sha512-xacnRS/h/FCsjsMfxBkzjoNxyxEyKyZfBch/P4vkLRvYJwe5ChXmZZrj8Dsed/752H2Q3JE8kYu9Uyha9J6PgA==", "license": "MIT", "dependencies": { "@babel/parser": "^7.24.7", - "@vue/compiler-core": "3.4.34", - "@vue/compiler-dom": "3.4.34", - "@vue/compiler-ssr": "3.4.34", - "@vue/shared": "3.4.34", + "@vue/compiler-core": "3.4.35", + "@vue/compiler-dom": "3.4.35", + "@vue/compiler-ssr": "3.4.35", + "@vue/shared": "3.4.35", "estree-walker": "^2.0.2", "magic-string": "^0.30.10", - "postcss": "^8.4.39", + "postcss": "^8.4.40", "source-map-js": "^1.2.0" } }, "node_modules/@vue/compiler-ssr": { - "version": "3.4.34", + "version": "3.4.35", + "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.4.35.tgz", + "integrity": "sha512-7iynB+0KB1AAJKk/biENTV5cRGHRdbdaD7Mx3nWcm1W8bVD6QmnH3B4AHhQQ1qZHhqFwzEzMwiytXm3PX1e60A==", "license": "MIT", "dependencies": { - "@vue/compiler-dom": "3.4.34", - "@vue/shared": "3.4.34" + "@vue/compiler-dom": "3.4.35", + "@vue/shared": "3.4.35" } }, "node_modules/@vue/compiler-vue2": { @@ -6871,43 +6905,53 @@ } }, "node_modules/@vue/reactivity": { - "version": "3.4.34", + "version": "3.4.35", + "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.4.35.tgz", + "integrity": "sha512-Ggtz7ZZHakriKioveJtPlStYardwQH6VCs9V13/4qjHSQb/teE30LVJNrbBVs4+aoYGtTQKJbTe4CWGxVZrvEw==", "license": "MIT", "dependencies": { - "@vue/shared": "3.4.34" + "@vue/shared": "3.4.35" } }, "node_modules/@vue/runtime-core": { - "version": "3.4.34", + "version": "3.4.35", + "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.4.35.tgz", + "integrity": "sha512-D+BAjFoWwT5wtITpSxwqfWZiBClhBbR+bm0VQlWYFOadUUXFo+5wbe9ErXhLvwguPiLZdEF13QAWi2vP3ZD5tA==", "license": "MIT", "dependencies": { - "@vue/reactivity": "3.4.34", - "@vue/shared": "3.4.34" + "@vue/reactivity": "3.4.35", + "@vue/shared": "3.4.35" } }, "node_modules/@vue/runtime-dom": { - "version": "3.4.34", + "version": "3.4.35", + "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.4.35.tgz", + "integrity": "sha512-yGOlbos+MVhlS5NWBF2HDNgblG8e2MY3+GigHEyR/dREAluvI5tuUUgie3/9XeqhPE4LF0i2wjlduh5thnfOqw==", "license": "MIT", "dependencies": { - "@vue/reactivity": "3.4.34", - "@vue/runtime-core": "3.4.34", - "@vue/shared": "3.4.34", + "@vue/reactivity": "3.4.35", + "@vue/runtime-core": "3.4.35", + "@vue/shared": "3.4.35", "csstype": "^3.1.3" } }, "node_modules/@vue/server-renderer": { - "version": "3.4.34", + "version": "3.4.35", + "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.4.35.tgz", + "integrity": "sha512-iZ0e/u9mRE4T8tNhlo0tbA+gzVkgv8r5BX6s1kRbOZqfpq14qoIvCZ5gIgraOmYkMYrSEZgkkojFPr+Nyq/Mnw==", "license": "MIT", "dependencies": { - "@vue/compiler-ssr": "3.4.34", - "@vue/shared": "3.4.34" + "@vue/compiler-ssr": "3.4.35", + "@vue/shared": "3.4.35" }, "peerDependencies": { - "vue": "3.4.34" + "vue": "3.4.35" } }, "node_modules/@vue/shared": { - "version": "3.4.34", + "version": "3.4.35", + "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.4.35.tgz", + "integrity": "sha512-hvuhBYYDe+b1G8KHxsQ0diDqDMA8D9laxWZhNAjE83VZb5UDaXl9Xnz7cGdDSyiHM90qqI/CyGMcpBpiDy6VVQ==", "license": "MIT" }, "node_modules/@wagmi/connectors": { @@ -9380,6 +9424,8 @@ }, "node_modules/csstype": { "version": "3.1.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", + "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==", "license": "MIT" }, "node_modules/date-fns": { @@ -17431,9 +17477,9 @@ } }, "node_modules/viem": { - "version": "2.18.5", - "resolved": "https://registry.npmjs.org/viem/-/viem-2.18.5.tgz", - "integrity": "sha512-hIV5+kzI1f6fOzmZWuycjH+9F/qcEQ3BOyF0/m1cc+pd2+PMdJ/yccL4MeKAUDc1mun5KGjub9HhJsu+9Ndd3Q==", + "version": "2.18.7", + "resolved": "https://registry.npmjs.org/viem/-/viem-2.18.7.tgz", + "integrity": "sha512-0Xy5ypk+n4lYthsvC96jsZE97quKoq1t53RrbhKElmq84Dt705uUjQDgH0/LqAV02Oe6341M3jPTU9JLbs2K2Q==", "funding": [ { "type": "github", @@ -17724,14 +17770,16 @@ "license": "MIT" }, "node_modules/vue": { - "version": "3.4.34", + "version": "3.4.35", + "resolved": "https://registry.npmjs.org/vue/-/vue-3.4.35.tgz", + "integrity": "sha512-+fl/GLmI4GPileHftVlCdB7fUL4aziPcqTudpTGXCT8s+iZWuOCeNEB5haX6Uz2IpRrbEXOgIFbe+XciCuGbNQ==", "license": "MIT", "dependencies": { - "@vue/compiler-dom": "3.4.34", - "@vue/compiler-sfc": "3.4.34", - "@vue/runtime-dom": "3.4.34", - "@vue/server-renderer": "3.4.34", - "@vue/shared": "3.4.34" + "@vue/compiler-dom": "3.4.35", + "@vue/compiler-sfc": "3.4.35", + "@vue/runtime-dom": "3.4.35", + "@vue/server-renderer": "3.4.35", + "@vue/shared": "3.4.35" }, "peerDependencies": { "typescript": "*" @@ -17790,10 +17838,12 @@ } }, "node_modules/vue-router": { - "version": "4.4.0", + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-4.4.1.tgz", + "integrity": "sha512-njTLt/6gYGgIhv+U8nc5J6JpJpntFgy4fptRJ9Dp2qWQRo/PekB5DbKRYRPt0kM6feXysPKl7A5BjOmOJL5Ttw==", "license": "MIT", "dependencies": { - "@vue/devtools-api": "^6.5.1" + "@vue/devtools-api": "^6.6.3" }, "funding": { "url": "https://github.com/sponsors/posva" diff --git a/package.json b/package.json index ba86dcc..68da52c 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "@aleph-sdk/message": "^1.0.7", "@libertai/libertai-js": "0.0.9", "@quasar/extras": "^1.16.12", - "@tanstack/vue-query": "^5.51.15", + "@tanstack/vue-query": "^5.51.16", "@wagmi/vue": "^0.0.34", "axios": "^1.7.2", "dayjs": "^1.11.12", @@ -42,9 +42,9 @@ "quasar": "^2.16.6", "stream": "^0.0.3", "uuid": "^10.0.0", - "viem": "^2.18.5", - "vue": "^3.4.34", - "vue-router": "^4.4.0", + "viem": "^2.18.6", + "vue": "^3.4.35", + "vue-router": "^4.4.1", "web3": "^4.11.1", "zod": "^3.23.8" },