Skip to content

Commit

Permalink
chore(github-actions): update config
Browse files Browse the repository at this point in the history
don't run on pull_request, we control the publication of a branch through the .releaserc.json file, we release from a normal non master branch
  • Loading branch information
michaelwittwer committed Jun 10, 2020
1 parent 72058fa commit a5a4bc3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Node CI

on: [push, pull_request]
on: [push]

jobs:
build:
Expand All @@ -27,7 +27,7 @@ jobs:
npm run docs:build
env:
CI: true
- name: Coveralls
- name: coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -44,8 +44,8 @@ jobs:

# publish pre-release if on PR branch
- name: release PR version
if: ${{ startsWith(github.ref, 'refs/pull/') }}
run: npx semantic-release -- --debug
if: ${{ github.ref != 'master' }}
run: npx semantic-release --debug
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down

0 comments on commit a5a4bc3

Please sign in to comment.