Skip to content

Commit 00fd3a6

Browse files
committed
Merge branch 'main' of github.com:Gearbox-protocol/periphery-v3
2 parents 19a8f94 + 1a1cbaa commit 00fd3a6

21 files changed

+7187
-163
lines changed

.commitlintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": ["@commitlint/config-conventional"]
3+
}

.github/workflows/lint_pr.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: "Lint PR"
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
- reopened
8+
- edited
9+
- synchronize
10+
11+
jobs:
12+
main:
13+
name: Validate PR title
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: amannn/action-semantic-pull-request@v4
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/pr.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Check PR
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened, synchronize]
6+
7+
env:
8+
HUSKY: 0
9+
CI: true
10+
11+
jobs:
12+
checks:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v3
17+
18+
- name: Setup node.js
19+
uses: actions/setup-node@v3
20+
with:
21+
cache: "yarn"
22+
node-version-file: ".nvmrc"
23+
24+
- name: Configure access to private npm packages
25+
run: echo "//registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}" > .npmrc
26+
27+
- name: Install dependencies
28+
run: |
29+
yarn install --frozen-lockfile
30+
31+
- name: Install Foundry
32+
uses: foundry-rs/foundry-toolchain@v1
33+
with:
34+
version: nightly
35+
36+
- name: Run forge tests
37+
run: forge test
38+
timeout-minutes: 10
39+
40+
- name: Perform checks
41+
run: |
42+
yarn prettier:ci

.github/workflows/release.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- "main"
7+
- "next"
8+
9+
env:
10+
HUSKY: 0
11+
CI: true
12+
13+
jobs:
14+
release:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
20+
- name: Setup node.js
21+
uses: actions/setup-node@v3
22+
with:
23+
cache: "yarn"
24+
node-version-file: ".nvmrc"
25+
26+
- name: Configure access to private npm packages
27+
run: echo "//registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}" > .npmrc
28+
29+
# prepare script runs before publish, and it needs husky
30+
- name: Install dependencies
31+
run: |
32+
yarn install --frozen-lockfile
33+
34+
- name: Semantic Release
35+
uses: cycjimmy/semantic-release-action@v3
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
cache/
33
/forge-out/*
44
/node_modules/
5-
5+
/lib/
66
# Ignores development broadcast logs
77
!/broadcast
88
/broadcast/*/31337/

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
18

.releaserc.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"branches": [
3+
{
4+
"name": "main"
5+
},
6+
{
7+
"name": "next",
8+
"channel": "next",
9+
"prerelease": "next"
10+
}
11+
],
12+
"plugins": [
13+
"@semantic-release/commit-analyzer",
14+
"@semantic-release/release-notes-generator",
15+
"@semantic-release/npm",
16+
"@semantic-release/github"
17+
]
18+
}

0 commit comments

Comments
 (0)