fix: use workspace flag to run abi script

This commit is contained in:
Arseniy Klempner 2025-12-01 14:13:27 -08:00
parent dd38f2df47
commit f7c6831ba3
No known key found for this signature in database
GPG Key ID: 51653F18863BD24B
2 changed files with 4 additions and 4 deletions

View File

@ -129,9 +129,9 @@ jobs:
id: rln-abi
if: ${{ steps.release.outputs.releases_created }}
run: |
cd packages/rln
npm run setup:contract-abi || {
npm run setup:contract-abi -w @waku/rln || {
echo "::warning::Failed to generate contract ABIs, marking @waku/rln as private to skip publishing"
cd packages/rln
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));"
echo "failed=true" >> $GITHUB_OUTPUT
}

View File

@ -35,9 +35,9 @@ jobs:
- name: Generate RLN contract ABIs
id: rln-abi
run: |
cd packages/rln
npm run setup:contract-abi || {
npm run setup:contract-abi -w @waku/rln || {
echo "::warning::Failed to generate contract ABIs, marking @waku/rln as private to skip publishing"
cd packages/rln
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));"
echo "failed=true" >> $GITHUB_OUTPUT
}