Skip to content

Commit

Permalink
chore: merge dev
Browse files Browse the repository at this point in the history
  • Loading branch information
kittybest committed Jan 11, 2024
2 parents e510d81 + 0689040 commit e395637
Show file tree
Hide file tree
Showing 6 changed files with 85 additions and 43 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CI

on:
push:
branches: [master, dev]
branches: [dev]
pull_request:

env:
Expand Down Expand Up @@ -43,6 +43,11 @@ jobs:
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
# Depending on the STATE_TREE_DEPTH param, there
# might be changes in the EmptyBallotRoots.sol file
git add contracts/contracts/trees/EmptyBallotRoots.sol
git diff --staged --quiet || git commit -m "Commit changes before publishing"
lerna version 0.0.0-ci.$(git rev-parse --short HEAD) --no-push --yes
lerna publish from-git --dist-tag ci --yes
env:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ jobs:
- name: Publish NPM
run: |
# Depending on the STATE_TREE_DEPTH param, there
# might be changes in the EmptyBallotRoots.sol file
git add contracts/contracts/trees/EmptyBallotRoots.sol
git diff --staged --quiet || git commit -m "Commit changes before publishing"
npx lerna publish from-git --yes
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 4 additions & 0 deletions cli/.env.template
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
## and that none of these values are mandatory for testing
## purposes

# Ethereum provider, replace with your own
# needed if running in production against
# a test network
ETH_PROVIDER="the_eth_provider_url"
# Ethereum secret key, replace with your own
# needed if running in production against
# a test network
Expand Down
3 changes: 3 additions & 0 deletions cli/hardhat.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import "@nomicfoundation/hardhat-toolbox";
import { config as envConfig } from "dotenv";

import path from "path";

import type { HardhatUserConfig } from "hardhat/config";

import { DEFAULT_ETH_SK, DEFAULT_ETH_PROVIDER } from "./ts/utils/defaults";

envConfig();

const parentDir = __dirname.includes("build") ? ".." : "";

const config: HardhatUserConfig = {
Expand Down
105 changes: 65 additions & 40 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"devDependencies": {
"@commitlint/cli": "^18.4.4",
"@commitlint/config-conventional": "^18.4.3",
"@typescript-eslint/eslint-plugin": "^6.13.1",
"@typescript-eslint/eslint-plugin": "^6.18.1",
"@typescript-eslint/parser": "^6.18.1",
"conventional-changelog-conventionalcommits": "^7.0.2",
"cz-conventional-changelog": "^3.3.0",
Expand All @@ -47,7 +47,7 @@
"lint-staged": "^15.1.0",
"prettier": "^3.1.1",
"prettier-plugin-solidity": "^1.3.1",
"solhint": "^4.0.0",
"solhint": "^4.1.1",
"typedoc": "^0.25.4",
"typedoc-plugin-markdown": "^3.17.1",
"typescript": "^5.3.3"
Expand Down

0 comments on commit e395637

Please sign in to comment.