-
Notifications
You must be signed in to change notification settings - Fork 21
51 lines (41 loc) · 1.27 KB
/
release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
name: Release
on:
push:
branches: [master, alpha, beta, next, next-major]
# Only allow one release workflow to execute at a time, since each release
# workflow uses shared resources (git tags, package registries)
concurrency:
group: ${{ github.workflow }}
jobs:
release:
name: Release
if: github.repository_owner == 'BitGo'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
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
# DISCUSS: Use `jq` or just a small node script to create/modify `.npmrc` in case
# one gets added in the future
- name: Prepare Release
run: mv .npmrc-release .npmrc
- name: Release
run: npx multi-semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}