name: Publish Package

on:
  push:
    tags:
      - "*"

jobs:
  build:
    runs-on: ubuntu-latest

    strategy:
      matrix:
        node-version: [12.x]

    steps:
      - uses: actions/checkout@v2
      - name: Use Node.js ${{ matrix.node-version }}
        uses: actions/setup-node@v1
        with:
          node-version: ${{ matrix.node-version }}
      - run: npm ci
      - run: npm run lint
      - run: sudo apt-get install -y git cmake wget
      - run: sudo apt-get install -y gcc-multilib g++-multilib pkg-config autoconf bison libtool flex zlib1g-dev
      - run: sudo apt-get install -y python2.7 python-pip
      - run: npm run install-build-deps
      - run: npm run build;
      - run: npm run test;
      - run: npm publish --access public
        env:
          CI: true
          NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

name: Publish Package

on:
  push:
    tags:
      - "*"

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-node@v1
        with:
          node-version: "12.x"
          registry-url: "https://registry.npmjs.org"
          scope: "@hpcc-js"
      - run: npm ci
      - run: npm run lint
      - run: sudo apt-get install -y git cmake wget
      - run: sudo apt-get install -y gcc-multilib g++-multilib pkg-config autoconf bison libtool flex zlib1g-dev
      - run: sudo apt-get install -y python2.7 python-pip
      - run: npm run install-build-deps
      - run: npm run build;
      - run: npm run test;
      - run: npm publish
        env:
          CI: true
          NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

Add scope for automatic publish
chore(build): Add scope for automatic publish

Signed-off-by: Gordon Smith <5f085e6782e5a0d505e986455e19d28b02f6fa85@gmail.com>
