diff --git a/.github/workflows/build_testnet_mainnet.yml b/.github/workflows/build_testnet_mainnet.yml
index 491143e..e5079ca 100644
--- a/.github/workflows/build_testnet_mainnet.yml
+++ b/.github/workflows/build_testnet_mainnet.yml
@@ -24,8 +24,8 @@ jobs:
uses: PaulHatch/semantic-version@v5.4.0
with:
tag_prefix: "v"
- major_pattern: "(MAJOR)"
- minor_pattern: "(feat|feature)"
+ major_pattern: "/MAJOR/"
+ minor_pattern: "/feat:/"
version_format: "${major}.${minor}.${patch}"
build:
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index a5376cd..ef603c8 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -7,114 +7,114 @@ on:
# - main
jobs:
- generate-version:
- name: Generate Semantic Version
- runs-on: ubuntu-latest
- outputs:
- version: ${{ steps.version.outputs.version }}
- version_tag: ${{ steps.version.outputs.version_tag }}
- steps:
- - name: Checkout repository
- uses: actions/checkout@v4
- with:
- fetch-depth: 0
-
- - name: Generate Semantic Version
- id: version
- uses: PaulHatch/semantic-version@v5.4.0
- with:
- tag_prefix: 'v'
- major_pattern: '(MAJOR)'
- minor_pattern: '(feat|feature)'
- version_format: '${major}.${minor}.${patch}'
-
- install-dependencies:
- name: Install Dependencies
- runs-on: ubuntu-latest
- needs: generate-version
- steps:
- - name: Checkout repository
- uses: actions/checkout@v4
-
- - name: Install Node.js
- uses: actions/setup-node@v4
- with:
- node-version: 18
- cache: 'npm'
-
- - name: Install dependencies
- run: npm install
-
- - name: Cache node_modules
- uses: actions/cache@v4
- with:
- path: node_modules
- key: npm-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
- restore-keys: npm-${{ runner.os }}-
-
- build:
- name: Build Next.js App
- runs-on: ubuntu-latest
- needs: [install-dependencies, generate-version]
- strategy:
- matrix:
- network: [devnet, testnet, mainnet]
- steps:
- - name: Checkout repository
- uses: actions/checkout@v4
-
- - name: Restore node_modules cache
- uses: actions/cache@v4
- with:
- path: node_modules
- key: npm-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
- restore-keys: npm-${{ runner.os }}-
-
- - name: Build Next.js App app for ${{ matrix.network }}
- run: npm run build:${{ matrix.network }}
- env:
- NODE_ENV: production
- MORALIS_API_KEY: ${{ secrets.MORALIS_API_KEY }}
- ALCHEMY_API_KEY: ${{ secrets.ALCHEMY_API_KEY }}
- NEXT_PUBLIC_APP_VERSION: ${{ needs.generate-version.outputs.version }}
-
- - name: Copy required assets
- run: |
- cp -r .next/static .next/standalone/.next/static
- cp -r public .next/standalone/public
-
- - name: Archive standalone build
- run: zip -r ratio1-explorer-${{ matrix.network }}.zip .next/standalone
-
- - name: Upload Build as Artifact
- uses: actions/upload-artifact@v4
- with:
- name: ratio1-explorer-${{ matrix.network }}
- path: ratio1-explorer-${{ matrix.network }}.zip
-
- release:
- name: Create GitHub Release
- runs-on: ubuntu-latest
- needs: [build, generate-version]
- steps:
- - name: Checkout repository
- uses: actions/checkout@v4
-
- - name: Download All Artifacts
- uses: actions/download-artifact@v4
- with:
- path: builds
-
- - name: List downloaded files
- run: ls -R builds
-
- - name: Create GitHub Release
- uses: softprops/action-gh-release@v2
- with:
- tag_name: ${{ needs.generate-version.outputs.version_tag }}
- name: v${{ needs.generate-version.outputs.version }}
- draft: false
- prerelease: false
- files: builds/**/*
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ generate-version:
+ name: Generate Semantic Version
+ runs-on: ubuntu-latest
+ outputs:
+ version: ${{ steps.version.outputs.version }}
+ version_tag: ${{ steps.version.outputs.version_tag }}
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+
+ - name: Generate Semantic Version
+ id: version
+ uses: PaulHatch/semantic-version@v5.4.0
+ with:
+ tag_prefix: "v"
+ major_pattern: "/MAJOR/"
+ minor_pattern: "/feat:/"
+ version_format: "${major}.${minor}.${patch}"
+
+ install-dependencies:
+ name: Install Dependencies
+ runs-on: ubuntu-latest
+ needs: generate-version
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+
+ - name: Install Node.js
+ uses: actions/setup-node@v4
+ with:
+ node-version: 18
+ cache: "npm"
+
+ - name: Install dependencies
+ run: npm install
+
+ - name: Cache node_modules
+ uses: actions/cache@v4
+ with:
+ path: node_modules
+ key: npm-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
+ restore-keys: npm-${{ runner.os }}-
+
+ build:
+ name: Build Next.js App
+ runs-on: ubuntu-latest
+ needs: [install-dependencies, generate-version]
+ strategy:
+ matrix:
+ network: [devnet, testnet, mainnet]
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+
+ - name: Restore node_modules cache
+ uses: actions/cache@v4
+ with:
+ path: node_modules
+ key: npm-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
+ restore-keys: npm-${{ runner.os }}-
+
+ - name: Build Next.js App app for ${{ matrix.network }}
+ run: npm run build:${{ matrix.network }}
+ env:
+ NODE_ENV: production
+ MORALIS_API_KEY: ${{ secrets.MORALIS_API_KEY }}
+ ALCHEMY_API_KEY: ${{ secrets.ALCHEMY_API_KEY }}
+ NEXT_PUBLIC_APP_VERSION: ${{ needs.generate-version.outputs.version }}
+
+ - name: Copy required assets
+ run: |
+ cp -r .next/static .next/standalone/.next/static
+ cp -r public .next/standalone/public
+
+ - name: Archive standalone build
+ run: zip -r ratio1-explorer-${{ matrix.network }}.zip .next/standalone
+
+ - name: Upload Build as Artifact
+ uses: actions/upload-artifact@v4
+ with:
+ name: ratio1-explorer-${{ matrix.network }}
+ path: ratio1-explorer-${{ matrix.network }}.zip
+
+ release:
+ name: Create GitHub Release
+ runs-on: ubuntu-latest
+ needs: [build, generate-version]
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+
+ - name: Download All Artifacts
+ uses: actions/download-artifact@v4
+ with:
+ path: builds
+
+ - name: List downloaded files
+ run: ls -R builds
+
+ - name: Create GitHub Release
+ uses: softprops/action-gh-release@v2
+ with:
+ tag_name: ${{ needs.generate-version.outputs.version_tag }}
+ name: v${{ needs.generate-version.outputs.version }}
+ draft: false
+ prerelease: false
+ files: builds/**/*
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
diff --git a/app/server-components/CPSs/CSPCard.tsx b/app/server-components/CPSs/CSPCard.tsx
index 379bed8..6d78fc0 100644
--- a/app/server-components/CPSs/CSPCard.tsx
+++ b/app/server-components/CPSs/CSPCard.tsx
@@ -50,6 +50,10 @@ export default async function CSPCard({ csp }: { csp: types.CSP }) {