Commit 37603fd2 authored by Steve Streza's avatar Steve Streza
Browse files

Add CI

parent a8ebc816
image: node:6
before_script:
- npm install
cache:
paths:
- node_modules/
# test:lint:
# script:
# - npm run lint
test:node:6:
image: node:6
script:
- npm run build
- npm test
test:node:8:
image: node:8
script:
- npm run build
- npm test
test:node:11:
image: node:11
script:
- npm run build
- npm test
test:node:10:
image: node:8
script:
- npm run build
- npm test
artifacts:
name: "${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
when: on_success
paths:
- lib/
- package.json
publish:
stage: deploy
only:
- tags
- triggers
script:
- npm run build
- echo "${NPMRC}" > .npmrc
- npm publish
{
"name": "microjournal-cli",
"version": "1.0.0",
"version": "0.0.0",
"description": "",
"main": "index.ts",
"scripts": {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment