name: Release
on:
  push:
    tags:
      - 'v*'
      - '!*-*' # skip prereleases

jobs:
  github:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
      - run: script/release-notes | tee relnotes.txt
      - uses: olegtarasov/get-tag@v1
        id: tagname
      - uses: softprops/action-gh-release@v1
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          name: node-build ${{ steps.tagname.outputs.tag }}
          body_path: relnotes.txt

  homebrew:
    runs-on: ubuntu-latest
    steps:
      - uses: mislav/bump-homebrew-formula-action@v1.4
        with:
          formula-name: node-build
        env:
          COMMITTER_TOKEN: ${{ secrets.HOMEBREW_BUMP_PR_COMMITTER_TOKEN }}

  npm:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
      - uses: actions/setup-node@v1
      - run: npm publish
        env:
          NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

name: Release
on:
  push:
    tags:
      - 'v*'
      - '!*-*' # skip prereleases

jobs:
  github:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
      - run: script/release-notes | tee relnotes.txt
      - uses: olegtarasov/get-tag@v1
        id: tagname
      - uses: softprops/action-gh-release@v1
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          name: node-build ${{ steps.tagname.outputs.tag }}
          body_path: relnotes.txt

  homebrew:
    runs-on: ubuntu-latest
    steps:
      - uses: mislav/bump-homebrew-formula-action@v1.4
        with:
          formula-name: node-build
        env:
          COMMITTER_TOKEN: ${{ secrets.HOMEBREW_BUMP_PR_COMMITTER_TOKEN }}

  npm:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
      - run: npm publish
        env:
          NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

Use OOTB node and skip setup-node step
Use OOTB node and skip setup-node step
