blob: 2df8d3104aa3ad4869bc16288c801c50ecb4bb72 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
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:
- yarn install
- yarn run build
- NPM_TOKEN=$(printenv TOKEN) npm publish
|