mirror of
https://github.com/0xbow-io/privacy-pools-core.git
synced 2026-01-09 01:17:58 -05:00
chore: update gh workflows
This commit is contained in:
47
.github/workflows/contracts.yml
vendored
47
.github/workflows/contracts.yml
vendored
@@ -65,28 +65,8 @@ jobs:
|
||||
node-version: 20.x
|
||||
cache: "yarn"
|
||||
|
||||
- name: Setup .npmrc file
|
||||
run: |
|
||||
echo "@defi-wonderland:registry=https://npm.pkg.github.com" > .npmrc
|
||||
echo "//npm.pkg.github.com/:_authToken=${{ secrets.PKG_REGISTRY_TOKEN }}" >> .npmrc
|
||||
working-directory: .
|
||||
|
||||
- name: Install root dependencies
|
||||
- name: Install dependencies
|
||||
run: yarn --frozen-lockfile --network-concurrency 1
|
||||
working-directory: .
|
||||
|
||||
- name: Build SDK
|
||||
run: |
|
||||
yarn build
|
||||
chmod +x ./scripts/copy_circuits.sh
|
||||
bash ./scripts/copy_circuits.sh
|
||||
working-directory: packages/sdk
|
||||
|
||||
- name: Link SDK
|
||||
run: |
|
||||
cd ../sdk && yarn link
|
||||
cd ../contracts && yarn link "@defi-wonderland/privacy-pool-core-sdk"
|
||||
shell: bash
|
||||
|
||||
- name: Precompile
|
||||
run: yarn build
|
||||
@@ -116,11 +96,6 @@ jobs:
|
||||
node-version: 20.x
|
||||
cache: "yarn"
|
||||
|
||||
- name: Setup .npmrc file
|
||||
run: |
|
||||
echo "@defi-wonderland:registry=https://npm.pkg.github.com" > .npmrc
|
||||
echo "//npm.pkg.github.com/:_authToken=${{ secrets.PKG_REGISTRY_TOKEN }}" >> .npmrc
|
||||
|
||||
- name: Install dependencies
|
||||
run: yarn --frozen-lockfile --network-concurrency 1
|
||||
|
||||
@@ -137,11 +112,11 @@ jobs:
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: Setup .npmrc file
|
||||
run: |
|
||||
echo "@defi-wonderland:registry=https://npm.pkg.github.com" > .npmrc
|
||||
echo "//npm.pkg.github.com/:_authToken=${{ secrets.PKG_REGISTRY_TOKEN }}" >> .npmrc
|
||||
working-directory: .
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20.x
|
||||
cache: "yarn"
|
||||
|
||||
- name: Install dependencies
|
||||
run: yarn --frozen-lockfile --network-concurrency 1
|
||||
@@ -165,15 +140,7 @@ jobs:
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20.x
|
||||
# cache: "yarn"
|
||||
|
||||
- name: Install Yarn
|
||||
run: npm install -g yarn
|
||||
|
||||
- name: Setup .npmrc file
|
||||
run: |
|
||||
echo "@defi-wonderland:registry=https://npm.pkg.github.com" > .npmrc
|
||||
echo "//npm.pkg.github.com/:_authToken=${{ secrets.PKG_REGISTRY_TOKEN }}" >> .npmrc
|
||||
cache: "yarn"
|
||||
|
||||
- name: Install dependencies
|
||||
run: yarn --frozen-lockfile --network-concurrency 1
|
||||
|
||||
19
.github/workflows/relayer.yml
vendored
19
.github/workflows/relayer.yml
vendored
@@ -27,10 +27,14 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20.x
|
||||
cache: "yarn"
|
||||
|
||||
- name: Install dependencies
|
||||
run: yarn --frozen-lockfile --network-concurrency 1
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Run Build
|
||||
run: yarn build
|
||||
@@ -50,15 +54,14 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Setup .npmrc file
|
||||
run: |
|
||||
echo "@defi-wonderland:registry=https://npm.pkg.github.com" > .npmrc
|
||||
echo "//npm.pkg.github.com/:_authToken=${{ secrets.PKG_REGISTRY_TOKEN }}" >> .npmrc
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20.x
|
||||
cache: "yarn"
|
||||
|
||||
- name: Install dependencies
|
||||
run: yarn install --frozen-lockfile
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Run tests with coverage
|
||||
run: yarn test:cov
|
||||
|
||||
15
.github/workflows/sdk.yml
vendored
15
.github/workflows/sdk.yml
vendored
@@ -27,6 +27,12 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20.x
|
||||
cache: "yarn"
|
||||
|
||||
- name: Install dependencies
|
||||
run: yarn --frozen-lockfile --network-concurrency 1
|
||||
|
||||
@@ -45,10 +51,11 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Setup .npmrc file
|
||||
run: |
|
||||
echo "@defi-wonderland:registry=https://npm.pkg.github.com" > .npmrc
|
||||
echo "//npm.pkg.github.com/:_authToken=${{ secrets.PKG_REGISTRY_TOKEN }}" >> .npmrc
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20.x
|
||||
cache: "yarn"
|
||||
|
||||
- name: Install dependencies
|
||||
run: yarn install --frozen-lockfile
|
||||
|
||||
Reference in New Issue
Block a user