Skip to content

Remove support for Goerli testnet (#3746) #125

Remove support for Goerli testnet (#3746)

Remove support for Goerli testnet (#3746) #125

Workflow file for this run

name: NPM ECDSA
on:
push:
branches:
- main
paths:
- "solidity/ecdsa/contracts/**"
- "solidity/ecdsa/deploy/**"
- "solidity/ecdsa/tasks/**"
- "solidity/ecdsa/hardhat.config.ts"
- "solidity/ecdsa/package.json"
- "solidity/ecdsa/yarn.lock"
- ".github/workflows/npm-ecdsa.yml"
workflow_dispatch:
jobs:
npm-compile-publish-contracts:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./solidity/ecdsa
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
# Using fixed version, because 18.16 may cause issues with the
# artifacts generation during `hardhat compile` - see
# https://github.com/NomicFoundation/hardhat/issues/3877.
node-version: "18.15.0"
registry-url: "https://registry.npmjs.org"
cache: "yarn"
cache-dependency-path: solidity/ecdsa/yarn.lock
- name: Resolve latest contracts
run: |
yarn upgrade --exact \
@keep-network/random-beacon \
@keep-network/sortition-pools \
@threshold-network/solidity-contracts
# Deploy contracts to a local network to generate deployment artifacts that
# are required by dashboard and client compilation.
- name: Deploy contracts
run: yarn deploy:test --network hardhat --write true
- name: Bump up package version
id: npm-version-bump
uses: keep-network/npm-version-bump@v2
with:
work-dir: ./solidity/ecdsa
environment: dev
branch: ${{ github.ref }}
commit: ${{ github.sha }}
- name: Publish package
if: github.ref == 'refs/heads/main'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish --access=public --network=hardhat --tag=development
- name: Publish package
if: github.ref != 'refs/heads/main'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish --access=public