aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 48e78247778642783d0688cc5bde085298bbd9dc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
image: "node:latest"

cache:
  paths:
    - node_modules/

job-publish:
  only:
    - tags

  before_script:
    - curl -o- -L https://yarnpkg.com/install.sh | bash
    - export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"

  script:
    - echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
    - npm publish