image: node:10.15.3

stages:
  - release
  - deploy

before_script:
  - export GITHUB_TOKEN="$GITHUB_TOKEN"
  - npm install -g github-release-cli

deploy:npm:
  stage: deploy
  tags:
    - docker-in-docker
  only:
    - tags
  script:
    - npm config set //registry.npmjs.org/:_authToken "$NPM_TOKEN"
    - npm publish --verbose

release:github:
  stage: release
  tags:
    - docker-in-docker
  only:
    - tags
  script:
    - github-release upload --owner="$GITHUB_USER" --repo=faparser --tag="$CI_COMMIT_TAG" --name="$CI_COMMIT_TAG" --body="Release $CI_COMMIT_TAG"
image: node:10.15.3

stages:
  - release
  - deploy

before_script:
  - export GITHUB_TOKEN="$GITHUB_TOKEN"

deploy:npm:
  stage: deploy
  tags:
    - docker-in-docker
  only:
    - tags
  script:
    - npm config set //registry.npmjs.org/:_authToken "$NPM_TOKEN"
    - npm publish --verbose

release:github:
  stage: release
  tags:
    - docker-in-docker
  only:
    - tags
  script:
    - npm install -g github-release-cli
    - github-release upload --owner="$GITHUB_USER" --repo=faparser --tag="$CI_COMMIT_TAG" --name="$CI_COMMIT_TAG" --body="Release $CI_COMMIT_TAG"
Install onloy on github release pipeline
Install onloy on github release pipeline
