Skip to content

Latest commit

 

History

History
57 lines (45 loc) · 911 Bytes

GITLAB.md

File metadata and controls

57 lines (45 loc) · 911 Bytes

Gitlab CI



Create file config:

touch .gitlab-ci.yml

Copy the content and paste in .gitlab.yml

image: node:latest

stages:
  - build
  - deploy

build:
  stage: build
  script:
    - yarn install
    - yarn build
  artifacts:
    expire_in: 1 hour
    paths:
      - dist/
      - node_modules/
  only:
    - tags

deploy:
  stage: deploy
  script:
    - echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" >> $HOME/.npmrc 2> /dev/null
    - npm publish
  only:
    - tags
  dependencies:
    - build

Example Projects

If you use this CI format, enter your project here.