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
If you use this CI format, enter your project here.