Skip to content

Commit

Permalink
Update CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
grod220 committed Sep 12, 2024
1 parent 21392bb commit a1b9999
Show file tree
Hide file tree
Showing 13 changed files with 488 additions and 1,413 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
submodules: 'true'
- uses: pnpm/action-setup@v3
with:
version: 9
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/rust-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: 'true'
- uses: actions-rs/toolchain@v1
with:
profile: minimal
Expand All @@ -29,6 +31,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: 'true'
- uses: actions-rs/toolchain@v1
with:
profile: minimal
Expand All @@ -44,6 +48,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: 'true'
- uses: actions-rs/toolchain@v1
with:
profile: minimal
Expand All @@ -52,3 +58,22 @@ jobs:
- name: Run Tests
run: cargo test
working-directory: tools/compiler

execute_and_check:
name: Generate registry and Check for Diffs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: 'true'
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Generate registry
run: cargo run
working-directory: tools/compiler
- name: Check for Uncommitted Changes
run: git diff --exit-code
working-directory: tools/compiler
6 changes: 6 additions & 0 deletions .github/workflows/typescript-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
submodules: 'true'
- uses: pnpm/action-setup@v3
with:
version: 9
Expand All @@ -40,6 +42,8 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
submodules: 'true'
- uses: pnpm/action-setup@v3
with:
version: 9
Expand All @@ -59,6 +63,8 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
submodules: 'true'
- uses: pnpm/action-setup@v3
with:
version: 9
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ field in the input JSON file.
Let's say you want to add or edit an asset in the registry. Here are the steps you should take.

1. Install pre-requisite deps: [Rust](https://www.rust-lang.org/tools/install) & [pnpm](https://pnpm.io/installation)
2. Fork repository & clone it down locally
2. Fork repository & clone it down locally with `git clone --recurse-submodules`
- If you've pulled the repo before, update the cosmos registry using `git submodule update --init --recursive`
3. In `input/<chain_name>.json`, add your new asset or edit the metadata as needed
4. In `tools/compiler/` directory run `cargo run`
5. In `npm/` run `pnpm install` and `pnpm changeset`. Make a minor (if new chain added) or patch (add/edit to existing)
Expand Down
6 changes: 6 additions & 0 deletions npm/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @penumbra-labs/registry

## 11.2.0

### Minor Changes

- c9bf54c: Update to latest cosmos registry

## 11.1.0

### Minor Changes
Expand Down
18 changes: 9 additions & 9 deletions npm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@penumbra-labs/registry",
"version": "11.1.0",
"version": "11.2.0",
"description": "Chain and asset registry for Penumbra",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand All @@ -17,18 +17,18 @@
},
"devDependencies": {
"@bufbuild/protobuf": "^1.10.0",
"@changesets/cli": "^2.27.7",
"@changesets/cli": "^2.27.8",
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.9.0",
"@eslint/js": "^9.10.0",
"@penumbra-zone/protobuf": "^6.0.0",
"eslint": "^9.9.0",
"fetch-mock": "^11.1.1",
"eslint": "^9.10.0",
"fetch-mock": "^11.1.3",
"prettier": "^3.3.3",
"tsup": "^8.2.4",
"typescript": "^5.5.4",
"typescript-eslint": "^8.2.0",
"vite": "^5.4.1",
"vite-plugin-dts": "^4.0.3",
"typescript": "^5.6.2",
"typescript-eslint": "^8.5.0",
"vite": "^5.4.4",
"vite-plugin-dts": "^4.2.1",
"vitest": "^2.0.5"
},
"files": [
Expand Down
Loading

0 comments on commit a1b9999

Please sign in to comment.