Skip to content
Open
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
14 changes: 7 additions & 7 deletions .github/workflows/deploy-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ jobs:
steps:
- name: Create GitHub App token
id: app-token
uses: actions/create-github-app-token@v1
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf
with:
app-id: ${{ secrets.DEPLOYMENT_APP_ID }}
private-key: ${{ secrets.DEPLOYMENT_APP_PRIVATE_KEY }}

- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
token: ${{ steps.app-token.outputs.token }}

Expand All @@ -39,36 +39,36 @@ jobs:
run: echo "image_tag=sha-${HEAD_SHA::7}" >> "$GITHUB_OUTPUT"

- name: Update mainnet indexer image tag
uses: mikefarah/yq@v4
uses: mikefarah/yq@5a7e72a743649b1b3a47d1a1d8214f3453173c51
env:
IMAGE_TAG: ${{ steps.vars.outputs.image_tag }}
with:
cmd: yq -i '.indexer.image.tag = strenv(IMAGE_TAG)' environments/main.yaml

- name: Update mainnet query image tag
uses: mikefarah/yq@v4
uses: mikefarah/yq@5a7e72a743649b1b3a47d1a1d8214f3453173c51
env:
IMAGE_TAG: ${{ steps.vars.outputs.image_tag }}
with:
cmd: yq -i '.query.image.tag = strenv(IMAGE_TAG)' environments/main.yaml

- name: Update testnet indexer image tag
uses: mikefarah/yq@v4
uses: mikefarah/yq@5a7e72a743649b1b3a47d1a1d8214f3453173c51
env:
IMAGE_TAG: ${{ steps.vars.outputs.image_tag }}
with:
cmd: yq -i '.indexer.image.tag = strenv(IMAGE_TAG)' environments/test.yaml

- name: Update testnet query image tag
uses: mikefarah/yq@v4
uses: mikefarah/yq@5a7e72a743649b1b3a47d1a1d8214f3453173c51
env:
IMAGE_TAG: ${{ steps.vars.outputs.image_tag }}
with:
cmd: yq -i '.query.image.tag = strenv(IMAGE_TAG)' environments/test.yaml

- name: Open deployment PR
id: cpr
uses: peter-evans/create-pull-request@v6
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0
with:
token: ${{ steps.app-token.outputs.token }}
author: "api-gitops[bot] <${{ secrets.DEPLOYMENT_APP_ID }}+api-gitops[bot]@users.noreply.github.com>"
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,21 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f

- name: Log in to Container Registry
uses: docker/login-action@v3
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata
id: meta
uses: docker/metadata-action@v5
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
Expand All @@ -61,7 +61,7 @@ jobs:
org.opencontainers.image.created={{created}}

- name: Build and push Docker image
uses: docker/build-push-action@v5
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8
with:
context: .
push: true
Expand Down
76 changes: 76 additions & 0 deletions .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: PR checks

on:
pull_request:
branches: [main]

permissions:
contents: read

jobs:
lint-and-format:
name: Lint & format
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd

- name: Install pnpm
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061
with:
version: 9

- name: Set up Node.js
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238
with:
node-version: "22"
cache: "pnpm"

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Lint
run: pnpm run lint

- name: Check format
run: pnpm run format:check

commitlint:
name: Commit message lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
fetch-depth: 0

- name: Install pnpm
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061
with:
version: 9

- name: Set up Node.js
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238
with:
node-version: "22"
cache: "pnpm"

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Lint commit messages
uses: wagoid/commitlint-github-action@b948419dd99f3fd78a6548d48f94e3df7f6bf3ed
with:
configFile: ./commitlint.config.ts

secrets:
name: Secrets scan
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
fetch-depth: 0

- name: TruffleHog OSS
uses: trufflesecurity/trufflehog@7c0734f987ad0bb30ee8da210773b800ee2016d3
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ jobs:
steps:
- name: Create GitHub App token
id: app-token
uses: actions/create-github-app-token@v1
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf
with:
app-id: ${{ secrets.DEPLOYMENT_APP_ID }}
private-key: ${{ secrets.DEPLOYMENT_APP_PRIVATE_KEY }}

- uses: googleapis/release-please-action@v4
- uses: googleapis/release-please-action@16a9c90856f42705d54a6fda1823352bdc62cf38
with:
token: ${{ steps.app-token.outputs.token }}
release-type: node
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"dependencies": {
"@dfatwork-pkgs/oras-client": "^0.1.0",
"@ponder/utils": "^0.2.17",
"bn.js": "^5.2.2",
"bn.js": "^5.2.3",
"dotenv": "^16.3.1",
"drizzle-orm": "0.41.0",
"hono": "^4.9.12",
Expand Down Expand Up @@ -70,7 +70,13 @@
"pnpm": {
"overrides": {
"@hono/node-server": "^1.10.2",
"hono": "^4.11.10"
"hono": "^4.11.10",
"tar": "^7.5.8",
"minimatch": "^9.0.6",
"ajv": "^8.18.0",
"eslint>ajv": "^6.12.6",
"@eslint/eslintrc>ajv": "^6.12.6",
"rollup": "^4.59.0"
}
}
}
Loading
Loading