🔎 Mainnet Example #5094
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: '🔎 Mainnet Example' | |
on: | |
schedule: | |
- cron: '0 * * * *' # Every hour | |
workflow_dispatch: | |
# TODO: Use variables when GH supports it for forks. See https://github.com/orgs/community/discussions/44322 | |
env: | |
RPC_PROVIDER_URL: 'https://polygon.llamarpc.com' | |
ENCRYPTOR_PRIVATE_KEY: ${{ secrets.MAINNET_ENCRYPTOR_PRIVATE_KEY }} | |
CONSUMER_PRIVATE_KEY: ${{ secrets.MAINNET_CONSUMER_PRIVATE_KEY }} | |
RITUAL_ID: '39' | |
jobs: | |
networks: | |
name: '🔎 Mainnet Example on Node ${{ matrix.node }} and ${{ matrix.os }}' | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
node: ['18.x'] | |
os: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: 'pnpm' | |
- name: Install dependencies | |
working-directory: ./examples/taco/nodejs | |
run: pnpm install | |
- name: Setup environment | |
working-directory: ./examples/taco/nodejs | |
# TODO: Use variables when GH supports it for forks. See https://github.com/orgs/community/discussions/44322 | |
run: | | |
echo RPC_PROVIDER_URL=$RPC_PROVIDER_URL > .env | |
echo ENCRYPTOR_PRIVATE_KEY=$ENCRYPTOR_PRIVATE_KEY >> .env | |
echo CONSUMER_PRIVATE_KEY=$CONSUMER_PRIVATE_KEY >> .env | |
echo RITUAL_ID=$RITUAL_ID >> .env | |
echo DOMAIN=mainnet >> .env | |
- name: Run taco/nodejs script | |
working-directory: ./examples/taco/nodejs | |
run: pnpm start |