Skip to content
Snippets Groups Projects
Commit 9355faf9 authored by Clayton, Brandon Scott's avatar Clayton, Brandon Scott
Browse files

add pipeline

parent 33e41adc
No related branches found
No related tags found
1 merge request!1Disagg Plotter
stages:
- test
- publish
####
# Template: GitLab runner tags
####
.dev-tags:
tags:
- development
####
# Template: Run Node
####
.node:
image: node:12
extends: .dev-tags
only:
- branches
- merge_requests
- master@ghsc/nshmp/disagg-d3
before_script:
- npm ci
####
# Stage: test
####
Build Angular:
stage: test
extends: .node
script:
- cd example
- npm i
- npm run build
Lint:
stage: test
extends: .node
script:
- npm run tslint
####
# Stage: publish
####
Publish npm:
stage: publish
image: node:12
extends: .dev-tags
only:
- tags@ghsc/nshmp/disagg-d3
before_script:
- npm run npm-cli-login -- -u ${NPM_USER} -p ${NPM_PASSWORD} -e ${NPM_EMAIL}
- git config user.email "${GITLAB_USER_EMAIL}"
- git config user.name "${GITLAB_USER_NAME}"
script:
- npx standard-version --release-as ${CI_COMMIT_TAG} --skip.commit --skip.changelog
- npm publish --access public
This diff is collapsed.
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
"main": "src/index.js", "main": "src/index.js",
"types": "types/index.d.ts", "types": "types/index.d.ts",
"scripts": { "scripts": {
"npm-cli-login": "npm-cli-login",
"pre-commit": "pretty-quick --staged && npm run tslint", "pre-commit": "pretty-quick --staged && npm run tslint",
"pre-push": "npm run pre-commit", "pre-push": "npm run pre-commit",
"tslint": "tslint -c tslint.json 'types/**/*.d.ts' 'src/**/*.d.ts'", "tslint": "tslint -c tslint.json 'types/**/*.d.ts' 'src/**/*.d.ts'",
...@@ -21,6 +22,7 @@ ...@@ -21,6 +22,7 @@
"@types/d3": "^3.5.43", "@types/d3": "^3.5.43",
"@types/node": "^14.6.0", "@types/node": "^14.6.0",
"husky": "^4.2.5", "husky": "^4.2.5",
"npm-cli-login": "^0.1.1",
"prettier": "^2.1.0", "prettier": "^2.1.0",
"pretty-quick": "^3.0.0", "pretty-quick": "^3.0.0",
"tslint": "^6.1.3", "tslint": "^6.1.3",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment