Ignore branches that are not master

This commit is contained in:
Josh Johnson 2019-10-23 10:41:47 +01:00
parent 4c6acb5de2
commit acceea524d

View file

@ -2,8 +2,8 @@ name: Publish Package
on:
push:
branches:
- master
branches-ignore:
- '!master'
tags:
- v*
@ -64,20 +64,4 @@ jobs:
HUSKY_SKIP_INSTALL: true
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
publish-github:
needs: publish-npm
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- run: echo ${{ github.sha }} > RELEASE.txt
- run: cat RELEASE.txt
- uses: softprops/action-gh-release@v1
with:
files: RELEASE.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}