Skip to content

Commit af6e438

Browse files
committed
chore: update release script
1 parent b59a54a commit af6e438

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

.github/workflows/release.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,23 @@
1-
name: Release
1+
name: Pipeline
22

3-
on:
4-
push:
5-
tags:
6-
- '*'
3+
on: [push, pull_request]
74

85
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
container: docker://node:13-alpine
9+
steps:
10+
- uses: actions/checkout@v1
11+
- run: apk add --no-cache git
12+
- run: yarn
13+
- run: yarn run lint
14+
- run: yarn run build
15+
- run: yarn run test:coverage
16+
- run: yarn run upload:coverage
17+
env:
18+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
919
publish:
20+
if: startsWith(github.ref, 'refs/tags/v')
1021
runs-on: ubuntu-latest
1122
needs: test
1223
steps:

0 commit comments

Comments
 (0)