Skip to content

Commit

Permalink
Updated ci file to fix error where build would not place files at the…
Browse files Browse the repository at this point in the history
… correct spot!.
  • Loading branch information
Johannestegner committed Jun 5, 2020
1 parent 40f3e0f commit c131578
Showing 1 changed file with 29 additions and 9 deletions.
38 changes: 29 additions & 9 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,36 @@
include:
- remote: https://gitlab.com/jitesoft/gitlab-ci-lib/raw/master/Scan/npm.yml
- remote: https://gitlab.com/jitesoft/gitlab-ci-lib/raw/master/license_management.yml
- remote: https://gitlab.com/jitesoft/gitlab-ci-lib/raw/master/js_common.yml
- template: SAST.gitlab-ci.yml

stages:
- test
- scan
- deploy

test:
extends: .npm:test
stage: test
image: jitesoft/node:latest
variables:
NODE_ENV: development
before_script:
- npm ci
script:
- npm run test

deploy:
extends: .npm:build:deploy
stage: deploy
image: jitesoft/node:latest
variables:
NODE_ENV: development
before_script:
- npm ci
script:
- npm run build:prod
- mv dist/* ./
- rm -rf dist
- npm version ${CI_COMMIT_TAG}
- npm publish --access public
only:
- tags
tags:
- protected
- npm

include:
- template: SAST.gitlab-ci.yml
- remote: https://gitlab.com/jitesoft/gitlab-ci-lib/raw/master/Scan/npm.yml

0 comments on commit c131578

Please sign in to comment.