-
-
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.
Signed-off-by: Johannes Tegnér <[email protected]>
- Loading branch information
1 parent
5b23f53
commit f8fa2a8
Showing
2 changed files
with
2 additions
and
31 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,31 +1,2 @@ | ||
stages: | ||
- test | ||
- deploy | ||
|
||
test: | ||
extends: .npm.test | ||
|
||
deploy: | ||
stage: deploy | ||
image: jitesoft/node:latest | ||
variables: | ||
NODE_ENV: development | ||
before_script: | ||
- npm ci | ||
script: | ||
- npm i npm@6 | ||
- ./node_modules/.bin/npm run build:prod | ||
- mv dist/* ./ | ||
- rm -rf dist | ||
- ./node_modules/.bin/npm version ${CI_COMMIT_TAG} | ||
- ./node_modules/.bin/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 | ||
- remote: https://gitlab.com/jitesoft/gitlab-ci-lib/raw/master/JS/test.yml | ||
- remote: https://gitlab.com/jitesoft/gitlab-ci-lib/raw/master/Auto/npm.yml |
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