Skip to content

Commit

Permalink
feat: setup CI
Browse files Browse the repository at this point in the history
  • Loading branch information
doomsower committed Feb 13, 2024
1 parent c43df91 commit 280840f
Show file tree
Hide file tree
Showing 7 changed files with 1,538 additions and 4 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release

on:
push:
branches:
- "main"
- "next"

env:
HUSKY: 0
CI: true

jobs:
release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
cache: "yarn"
node-version-file: ".nvmrc"

- name: Semantic Release
uses: cycjimmy/semantic-release-action@v3
env:
GITHUB_TOKEN: ${{ github.token }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 1 addition & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx --no -- commitlint --edit $1
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx --no -- lint-staged
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18
18 changes: 18 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"branches": [
{
"name": "main"
},
{
"name": "next",
"channel": "next",
"prerelease": "next"
}
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/npm",
"@semantic-release/github"
]
}
20 changes: 18 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,28 @@
"type": "git",
"url": "https://github.com/Gearbox-protocol/bots-v3"
},
"scripts": {
"prepare": "husky || true"
},
"dependencies": {},
"devDependencies": {
"@1inch/solidity-utils": "2.4.0",
"@commitlint/cli": "18.6.0",
"@commitlint/config-conventional": "18.6.0",
"@gearbox-protocol/core-v2": "^1.19.0-base.17",
"@gearbox-protocol/core-v3": "^1.47.1",
"@gearbox-protocol/sdk-gov": "^1.29.0",
"@openzeppelin/contracts": "4.9.3",
"forge-std": "foundry-rs/forge-std"
"forge-std": "foundry-rs/forge-std",
"husky": "^9.0.10",
"lint-staged": "^15.2.2"
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"lint-staged": {
"*.sol": "forge fmt"
}
}
}
Loading

0 comments on commit 280840f

Please sign in to comment.