Skip to content

Commit 829565b

Browse files
committed
clean up pipelines
1 parent 997ccef commit 829565b

2 files changed

Lines changed: 8 additions & 51 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 0 additions & 50 deletions
This file was deleted.

.github/workflows/publish-github.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@ on:
33
push:
44
braches:
55
- main
6+
pull_request:
7+
branches:
8+
- main
69

710
jobs:
8-
build:
11+
build-test:
912
runs-on: ubuntu-latest
1013
steps:
1114
- uses: actions/checkout@v2
@@ -18,9 +21,12 @@ jobs:
1821
- run: npm install
1922
- run: npm run build
2023
- run: npm run test
24+
- run: npm run lint
25+
- run: npm run coverage
2126

2227
publish-npm:
2328
needs: build
29+
if: github.ref == 'refs/heads/main'
2430
runs-on: ubuntu-latest
2531
steps:
2632
- uses: actions/checkout@v2
@@ -36,6 +42,7 @@ jobs:
3642

3743
publish-gpr:
3844
needs: build
45+
if: github.ref == 'refs/heads/main'
3946
runs-on: ubuntu-latest
4047
steps:
4148
- uses: actions/checkout@v2

0 commit comments

Comments
 (0)