documentation-theme-griest
Version:
documentationjs theme
31 lines (25 loc) • 433 B
YAML
image: kkarczmarczyk/node-yarn:latest
stages:
- build
- deploy
cache:
paths:
- node_modules/
before_script:
- yarn install
build:
stage: build
script:
- npm run build
artifacts:
paths:
- index.js
publish:
stage: deploy
script:
- echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
- npm publish
dependencies:
- build
only:
- tags