Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: pnpm migration #1005

Merged
merged 2 commits into from
Jan 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
# Lines starting with '#' are comments.

# Each line is a file pattern followed by one or more owners.

# More details are here: https://help.github.com/articles/about-codeowners/

# The '*' pattern is global owners.
# The '\*' pattern is global owners.

# Order is important. The last matching pattern has the most precedence.

# The folders are ordered as follows:

# In each subsection folders are ordered first by depth, then alphabetically.

# This should make it easy to add new rules without breaking existing ones.

# Global:

* @ctrlc03 @kittybest @0xmad @samajammin @crisgarner
- @ctrlc03 @kittybest @0xmad @samajammin @crisgarner
8 changes: 4 additions & 4 deletions .github/scripts/website.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
set -e

# install maci dependencies, bootstrap monorepo and build packages
npm install && npm run build
pnpm install && pnpm run build

# run typedoc
npm run typedoc
pnpm run typedoc

# run solidity docgen
cd contracts && npm run docs
cd contracts && pnpm run docs

# fix links in the website and build again
cd ../website && npm run build
cd ../website && pnpm run build
15 changes: 9 additions & 6 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,23 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: latest

- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
cache: "pnpm"

- name: Update npm to latest version
run: npm install --global npm@latest
- name: Install
run: |
pnpm install --frozen-lockfile --prefer-offline
- name: Build
run: |
npm install
npm run build
pnpm run build
- name: ${{ matrix.command }}
run: npm run ${{ matrix.command }}
run: pnpm run ${{ matrix.command }}
21 changes: 12 additions & 9 deletions .github/workflows/circuit-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: latest

- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"

- name: Update npm to latest version
run: npm install --global npm@latest
cache: "pnpm"

- name: Install dependencies
run: |
Expand All @@ -35,10 +35,13 @@ jobs:
nasm \
nlohmann-json3-dev
- name: Build maci-circuits package
- name: Install
run: |
pnpm install --frozen-lockfile --prefer-offline
- name: Build
run: |
npm install
npm run build
pnpm run build
- name: Download circom Binary v2.1.6
run: |
Expand All @@ -47,9 +50,9 @@ jobs:
sudo mv /home/runner/work/circom /bin/circom
- name: Build circuits
run: npm run build-test-circuits-wasm
run: pnpm run build-test-circuits-wasm
working-directory: circuits

- name: Test circuits
run: npm run test
run: pnpm run test
working-directory: circuits
12 changes: 6 additions & 6 deletions .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v2
with:
version: latest

- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"

- name: Update npm to latest version
run: npm install --global npm@latest
cache: "pnpm"

- name: Install
run: |
npm install
pnpm install --frozen-lockfile --prefer-offline
- run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
- run: pnpm exec commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
15 changes: 9 additions & 6 deletions .github/workflows/contracts-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,24 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: latest

- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
cache: "pnpm"

- name: Update npm to latest version
run: npm install --global npm@latest
- name: Install
run: |
pnpm install --frozen-lockfile --prefer-offline
- name: Build
run: |
npm install
npm run build
pnpm run build
- name: Test
run: npm run test
run: pnpm run test
working-directory: contracts
15 changes: 9 additions & 6 deletions .github/workflows/core-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,24 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: latest

- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
cache: "pnpm"

- name: Update npm to latest version
run: npm install --global npm@latest
- name: Install
run: |
pnpm install --frozen-lockfile --prefer-offline
- name: Build
run: |
npm install
npm run build
pnpm run build
- name: Test
run: npm run test
run: pnpm run test
working-directory: core
15 changes: 9 additions & 6 deletions .github/workflows/crypto-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,24 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: latest

- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
cache: "pnpm"

- name: Update npm to latest version
run: npm install --global npm@latest
- name: Install
run: |
pnpm install --frozen-lockfile --prefer-offline

- name: Build
run: |
npm install
npm run build
pnpm run build

- name: Test
run: npm run test
run: pnpm run test
working-directory: crypto
15 changes: 9 additions & 6 deletions .github/workflows/domainobjs-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,25 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: latest

- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
cache: "pnpm"

- name: Update npm to latest version
run: npm install --global npm@latest
- name: Install
run: |
pnpm install --frozen-lockfile --prefer-offline
- name: Build
run: |
npm install
npm run build
pnpm run build
- name: Test
run: |
npm run test
pnpm run test
working-directory: domainobjs
12 changes: 9 additions & 3 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,23 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: latest

- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: "https://registry.npmjs.org"

- name: Initialize Project
- name: Install
run: |
pnpm install --frozen-lockfile --prefer-offline
- name: Build
run: |
npm install
npm run build
pnpm run build
- name: Publish Project
run: |
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,16 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: latest

- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: "https://registry.npmjs.org"
cache: "pnpm"

- name: Build website
run: |
Expand Down
15 changes: 11 additions & 4 deletions .github/workflows/nightly-ceremony.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,15 @@ jobs:
- uses: actions/checkout@v4
with:
ref: dev
- uses: pnpm/action-setup@v2
with:
version: latest

- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"

- name: Install dependencies
run: |
Expand All @@ -31,15 +35,18 @@ jobs:
nasm \
nlohmann-json3-dev

- name: Initialize Project
- name: Install
run: |
pnpm install --frozen-lockfile --prefer-offline

- name: Build
run: |
npm install
npm run build
pnpm run build

- name: Run hardhat fork
run: |
cd contracts
npm run hardhat &
pnpm run hardhat &

- name: Download rapidsnark (1c137)
run: |
Expand Down
Loading
Loading