mirror of
https://github.com/logos-messaging/logos-messaging-js.git
synced 2026-01-17 15:33:10 +00:00
feat: generate abi and build rln package as release condition
This commit is contained in:
parent
525bdcf68c
commit
d8ca7d0e07
22
.github/workflows/ci.yml
vendored
22
.github/workflows/ci.yml
vendored
@ -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 }}
|
||||
|
||||
|
||||
20
.github/workflows/pre-release.yml
vendored
20
.github/workflows/pre-release.yml
vendored
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user