-
Notifications
You must be signed in to change notification settings - Fork 21
26 lines (25 loc) · 944 Bytes
/
build.yml
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
name: Check branch is releasable and release alpha on main branch update
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
container: cypress/browsers:node14.17.0-chrome91-ff89
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
token: ${{ secrets.SUPPORT_TOKEN }}
- name: Install lerna and all packages
run: npm ci
- name: Run linter in all packages
run: npm run lint
- name: Run tests in all packages
run: npm run test
- name: Release alpha on non-release pushes to main branch
if: ${{ github.ref_name == 'main' && github.actor != 'support-empathy' && !startsWith(github.event.head_commit.message, 'chore(release):') }}
uses: ./.github/actions/release-alpha
with:
npm-token: ${{ secrets.NPM_TOKEN }}