Skip to content
This repository was archived by the owner on Apr 15, 2025. It is now read-only.

Commit 80a0ea9

Browse files
authored
chore: tweak workflow
1 parent 83f0cc2 commit 80a0ea9

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

.github/workflows/main.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: CI
2-
on: [push]
2+
on:
3+
push:
4+
branches: [ master ]
5+
pull_request:
6+
branches: [ master ]
37
jobs:
48
build:
59
runs-on: ubuntu-latest
@@ -24,13 +28,24 @@ jobs:
2428
env:
2529
CI: true
2630

31+
- name: Lint
32+
run: yarn lint
33+
env:
34+
CI: true
35+
36+
- name: Test
37+
run: yarn test
38+
env:
39+
CI: true
40+
2741
- name: Test Coverage
2842
run: bash <(curl -s https://codecov.io/bash) -f coverage/lcov.info
2943
env:
3044
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
3145

32-
- name: CI
33-
run: yarn dv-scripts ci
46+
- name: Release
47+
if: github.ref == 'refs/heads/master'
48+
run: yarn release
3449
env:
3550
CI: true
3651
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)