Skip to content

Commit

Permalink
Ignore branches that are not master
Browse files Browse the repository at this point in the history
  • Loading branch information
jshjohnson committed Oct 23, 2019
1 parent 4c6acb5 commit acceea5
Showing 1 changed file with 3 additions and 19 deletions.
22 changes: 3 additions & 19 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Publish Package

on:
push:
branches:
- master
branches-ignore:
- '!master'
tags:
- v*

Expand Down Expand Up @@ -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}}

0 comments on commit acceea5

Please sign in to comment.