Skip to content

Commit

Permalink
build: update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ph1p committed Sep 2, 2021
1 parent a07bd8f commit 9218a40
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-and-build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Test and Build

on: [push]
on: [pull_request]

jobs:
test:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Test and publish to npm

on:
push:
branches:
- main
tags:
- v*

Expand All @@ -24,7 +26,6 @@ jobs:
- run: npm test

release:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
needs: test
steps:
Expand Down

0 comments on commit 9218a40

Please sign in to comment.