Skip to content

Commit f7c6831

Browse files
committed
fix: use workspace flag to run abi script
1 parent dd38f2d commit f7c6831

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@ jobs:
129129
id: rln-abi
130130
if: ${{ steps.release.outputs.releases_created }}
131131
run: |
132-
cd packages/rln
133-
npm run setup:contract-abi || {
132+
npm run setup:contract-abi -w @waku/rln || {
134133
echo "::warning::Failed to generate contract ABIs, marking @waku/rln as private to skip publishing"
134+
cd packages/rln
135135
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));"
136136
echo "failed=true" >> $GITHUB_OUTPUT
137137
}

.github/workflows/pre-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ jobs:
3535
- name: Generate RLN contract ABIs
3636
id: rln-abi
3737
run: |
38-
cd packages/rln
39-
npm run setup:contract-abi || {
38+
npm run setup:contract-abi -w @waku/rln || {
4039
echo "::warning::Failed to generate contract ABIs, marking @waku/rln as private to skip publishing"
40+
cd packages/rln
4141
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));"
4242
echo "failed=true" >> $GITHUB_OUTPUT
4343
}

0 commit comments

Comments
 (0)