Skip to content

Commit

Permalink
Merge pull request #5 from BitGo/BG-66106-ci-enable-semantic-release
Browse files Browse the repository at this point in the history
ci: enable semantic-release
  • Loading branch information
ericcrosson-bitgo authored Jan 24, 2023
2 parents 866ff17 + 320d7a0 commit bb7e099
Show file tree
Hide file tree
Showing 4 changed files with 4,246 additions and 59 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/main_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- master
- '!release-do-not-use'
pull_request:

jobs:
Expand Down Expand Up @@ -77,3 +78,25 @@ jobs:
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run lint:tests
release:
if: github.repository_owner == 'BitGo' && github.event_name == 'push' && github.ref_name == 'master'
runs-on: ubuntu-latest
needs:
- audit
- unit
- coverage
- format
- gitdiff
- lint
- lint-tests
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
cache: 'npm'
- run: npm ci
- run: ./node_modules/.bin/semantic-release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21 changes: 21 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"branches": [
"release-do-not-use",
{
"name": "master",
"prerelease": true,
"channel": "rc"
}
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/npm",
[
"@semantic-release/github",
{
"failComment": false
}
]
]
}
Loading

0 comments on commit bb7e099

Please sign in to comment.