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
3 changes: 3 additions & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@
"reactjs",
"recid",
"rlnrelay",
"rlnv",
"roadmap",
"sandboxed",
"scanf",
Expand Down Expand Up @@ -132,7 +133,9 @@
"upgrader",
"vacp",
"varint",
"viem",
"vkey",
"wagmi",
"waku",
"wakuconnect",
"wakunode",
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,28 @@ jobs:
- run: npm install
if: ${{ steps.release.outputs.releases_created }}

- name: Setup Foundry
if: ${{ steps.release.outputs.releases_created }}
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly

- name: Generate RLN contract ABIs and verify build
if: ${{ steps.release.outputs.releases_created }}
run: |
cd packages/rln
npm run setup:contract-abi || {
echo "Failed to generate contract ABIs, marking @waku/rln as private to skip publishing"
node -e "const fs = require('fs'); const pkg = JSON.parse(fs.readFileSync('package.json', 'utf8')); pkg.private = true; fs.writeFileSync('package.json', JSON.stringify(pkg, null, 2));"
exit 0
}
npm run build || {
echo "Failed to build @waku/rln, marking as private to skip publishing"
node -e "const fs = require('fs'); const pkg = JSON.parse(fs.readFileSync('package.json', 'utf8')); pkg.private = true; fs.writeFileSync('package.json', JSON.stringify(pkg, null, 2));"
exit 0
}
cd ../..

- run: npm run build
if: ${{ steps.release.outputs.releases_created }}

Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,26 @@ jobs:

- run: npm install

- name: Setup Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly

- name: Generate RLN contract ABIs and verify build
run: |
cd packages/rln
npm run setup:contract-abi || {
echo "Failed to generate contract ABIs, marking @waku/rln as private to skip publishing"
node -e "const fs = require('fs'); const pkg = JSON.parse(fs.readFileSync('package.json', 'utf8')); pkg.private = true; fs.writeFileSync('package.json', JSON.stringify(pkg, null, 2));"
exit 0
}
npm run build || {
echo "Failed to build @waku/rln, marking as private to skip publishing"
node -e "const fs = require('fs'); const pkg = JSON.parse(fs.readFileSync('package.json', 'utf8')); pkg.private = true; fs.writeFileSync('package.json', JSON.stringify(pkg, null, 2));"
exit 0
}
cd ../..

- run: npm run build

- run: npm run publish -- --tag next
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ packages/discovery/mock_local_storage
CLAUDE.md
.env
postgres-data/
packages/rln/waku-rlnv2-contract/
Loading
Loading