Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
metrics
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libs
metrics
Commits
01eed666
Unverified
Commit
01eed666
authored
4 years ago
by
Sigmund, Dominik
Browse files
Options
Downloads
Plain Diff
merge
parents
1ecff50e
3b0f7efa
No related branches found
No related tags found
1 merge request
!1
Master to main
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.yml
+4
-6
4 additions, 6 deletions
.gitlab-ci.yml
.npmignore
+7
-1
7 additions, 1 deletion
.npmignore
.npmrc
+4
-0
4 additions, 0 deletions
.npmrc
package.json
+3
-0
3 additions, 0 deletions
package.json
with
18 additions
and
7 deletions
.gitlab-ci.yml
+
4
−
6
View file @
01eed666
image
:
node:latest
include
:
-
project
:
'
general/templates'
file
:
'
/cicd/SAST-nodejs.gitlab-ci.yml'
...
...
@@ -9,18 +11,16 @@ include:
variables
:
SONAR_PROJECT_KEY
:
metrics
SONAR_TOKEN
:
11922a8e774494f51e1d2f0e695949e4073e7df8
NPM_REGISTRY
:
https://npm.br-edv.brnet.int
NPM_TOKEN
:
5w2Gy80rdH+2Tch0afNI6Q==
cache
:
paths
:
-
node_modules/
-
docs/
-
dist/
stages
:
-
build
-
test
-
quality
-
publish
build
:
...
...
@@ -43,6 +43,4 @@ test:
publish
:
stage
:
publish
script
:
-
npm config set strict-ssl
false
-
npm config set //${NPM_REGISTRY}/:_authToken ${NPM_TOKEN}
-
npm publish --registry $NPM_REGISTRY
-
npm publish
This diff is collapsed.
Click to expand it.
.npmignore
+
7
−
1
View file @
01eed666
src/
docs/
examples/
.gitlab-ci.yml
\ No newline at end of file
.gitlab-ci.yml
.npmrc
.eslintrc.json
jest.config.js
stryker.conf.json
tsconfig-examples.json
tsconfig.json
This diff is collapsed.
Click to expand it.
.npmrc
0 → 100644
+
4
−
0
View file @
01eed666
strict-ssl=false
@general:registry=https://gitlab.br.de/api/v4/projects/${CI_PROJECT_ID}/packages/npm/
//gitlab.br.de/api/v4/packages/npm/:_authToken=${CI_JOB_TOKEN}
//gitlab.br.de/api/v4/projects/${CI_PROJECT_ID}/packages/npm/:_authToken=${CI_JOB_TOKEN}
This diff is collapsed.
Click to expand it.
package.json
+
3
−
0
View file @
01eed666
...
...
@@ -19,6 +19,9 @@
"prometheus"
],
"author"
:
"Dominik Sigmund <dominik.sigmund@br.de>"
,
"publishConfig"
:
{
"@general:registry"
:
"https://gitlab.br.de/api/v4/projects/8/packages/npm/"
},
"license"
:
"
Unlicense
"
,
"dependencies"
:
{
"
express
"
:
"
^4.17.1
"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment