Skip to content

Commit 9218a40

Browse files
committed
build: update workflows
1 parent a07bd8f commit 9218a40

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/test-and-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Test and Build
22

3-
on: [push]
3+
on: [pull_request]
44

55
jobs:
66
test:

.github/workflows/test-and-publish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: Test and publish to npm
22

33
on:
44
push:
5+
branches:
6+
- main
57
tags:
68
- v*
79

@@ -24,7 +26,6 @@ jobs:
2426
- run: npm test
2527

2628
release:
27-
if: github.ref == 'refs/heads/main'
2829
runs-on: ubuntu-latest
2930
needs: test
3031
steps:

0 commit comments

Comments
 (0)