-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated ci file to fix error where build would not place files at the…
… correct spot!.
- Loading branch information
1 parent
40f3e0f
commit c131578
Showing
1 changed file
with
29 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |