Skip to content

Commit

Permalink
Add deploy to CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-cronin committed Aug 3, 2020
1 parent f71e6dd commit a50a8b8
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ cache:

stages:
- check
- build
- deploy

before_script:
- node --version
Expand All @@ -24,3 +26,20 @@ jest:
image: node:12
script:
- npm run test

build:all:
stage: build
image: node:12
script:
- npm run build:all

build:all:
stage: deploy
image: node:12
only:
- tags
- triggers
script:
- npm run build:all
- echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}'>.npmrc
- npm publish
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
"build:all": "npm run build:proto && npm run build:webpack && npm run build:documentation",
"generate:sslcerts": "./scripts/generate_ssl_certs.sh",
"test": "jest",
"lint": "eslint '{src,tests}/**/*.{js,ts}' --quiet --fix"
"lint": "eslint '{src,tests}/**/*.{js,ts}' --quiet --fix",
"postversion": "git push --tags origin"
},
"jest": {
"verbose": true,
Expand Down

0 comments on commit a50a8b8

Please sign in to comment.