Gitlab CI
[Site](https://docs.gitlab.com/ee/ci/) | [Example](examples/.gitlab.yml)
Create file config:
touch .gitlab-ci.yml
Copy the content and paste in .gitlab.yml
.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.
Last updated
Was this helpful?