Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
Merge pull request #4 from BitGo/release-config
Browse files Browse the repository at this point in the history
feat: init release
  • Loading branch information
0xJacobV authored Mar 9, 2023
2 parents 144e661 + 58bffa5 commit 51b904d
Show file tree
Hide file tree
Showing 7 changed files with 978 additions and 7 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,31 @@ concurrency:
cancel-in-progress: true

jobs:
commitlint:
runs-on: ubuntu-latest
name: "Commit Message Check"
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 10

- uses: pnpm/action-setup@v2
with:
version: 7

- name: Use Node.js
uses: actions/setup-node@v3
with:
cache: "pnpm"
node-version: lts/*

- name: Install dependencies
run: pnpm install

- name: Validate PR commits with commitlint
if: github.event_name == 'pull_request'
run: pnpm dlx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose

identity-token:
runs-on: ubuntu-latest

Expand Down
8 changes: 8 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/npm",
"@semantic-release/github"
]
}
1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = { extends: ['@commitlint/config-conventional'] };
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@
"test": "c8 mocha -r ts-node/register test/**/*.ts --exit"
},
"dependencies": {
"fp-ts": "^2.10.5",
"io-ts": "2.1.3",
"jose": "^4.11.2",
"jsonwebtoken": "^8.5.1",
"superagent": "^8.0.9",
"fp-ts": "^2.10.5",
"io-ts": "2.1.3"
"superagent": "^8.0.9"
},
"devDependencies": {
"@commitlint/cli": "^17.4.4",
"@commitlint/config-conventional": "^17.4.4",
"@types/chai": "4.3.1",
"@types/jsonwebtoken": "8.5.9",
"@types/mocha": "9.1.1",
Expand All @@ -34,6 +36,7 @@
"@typescript-eslint/parser": "^5.54.0",
"c8": "^7.13.0",
"chai": "4.3.6",
"commitlint": "^17.4.4",
"eslint": "^8.35.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^4.2.1",
Expand Down
Loading

0 comments on commit 51b904d

Please sign in to comment.