From acceea524df61ce6b343fb14a23730517594485c Mon Sep 17 00:00:00 2001 From: Josh Johnson Date: Wed, 23 Oct 2019 10:41:47 +0100 Subject: [PATCH] Ignore branches that are not master --- .github/workflows/npmpublish.yml | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml index 5a5b676..9c3d134 100644 --- a/.github/workflows/npmpublish.yml +++ b/.github/workflows/npmpublish.yml @@ -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}} \ No newline at end of file