Skip to content
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
40 changes: 40 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
name: Release

on:
push:
branches: [master, alpha, beta, next, next-major]

jobs:
release:
name: Release
runs-one: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v3
with:
cache: npm
node-version: 'lts/*'

- name: Install dependencies
run: npm ci

- name: Compile TypeScript
run: npm run build

# Run tests before releasing to verify the code behaves as expected. We expect
# this step to identify some (but not all) semantic merge conflicts
- name: Test
run: npm test

- name: Release
run: npx multi-semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 2 additions & 1 deletion .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"*.json": ["prettier --write"],
"*.md": ["prettier --write"],
"*.ts": ["prettier --write"]
"*.ts": ["prettier --write"],
"*.yml": ["prettier --write"]
}
13 changes: 13 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semrel-extra/npm",
[
"@semantic-release/github",
{
"assignees": ["@BitGo/internal-tools"]
}
]
]
}
Loading