Skip to content

Commit a5a4bc3

Browse files
chore(github-actions): update config
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
1 parent 72058fa commit a5a4bc3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Node CI
22

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

55
jobs:
66
build:
@@ -27,7 +27,7 @@ jobs:
2727
npm run docs:build
2828
env:
2929
CI: true
30-
- name: Coveralls
30+
- name: coveralls
3131
uses: coverallsapp/github-action@master
3232
with:
3333
github-token: ${{ secrets.GITHUB_TOKEN }}
@@ -44,8 +44,8 @@ jobs:
4444

4545
# publish pre-release if on PR branch
4646
- name: release PR version
47-
if: ${{ startsWith(github.ref, 'refs/pull/') }}
48-
run: npx semantic-release -- --debug
47+
if: ${{ github.ref != 'master' }}
48+
run: npx semantic-release --debug
4949
env:
5050
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5151
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)