Skip to content
Snippets Groups Projects
Commit d256dada authored by Im Cobu's avatar Im Cobu
Browse files

automatically publish npm package

adding ci to automatically publish the gosdn-web api npm package to the
gitlab package registry
parent e29c9492
No related branches found
No related tags found
No related merge requests found
include:
- local: '/web/.gitlab-ci-web'
image: node:latest
stages:
- deploy
deploy:
stage: deploy
script:
- echo "//gitlab.example.com/api/v4/projects/${CI_PROJECT_ID}/packages/npm/:_authToken=${CI_JOB_TOKEN}">.npmrc
- npm publish
{ {
"name": "gosdn-web", "name": "@danet/api",
"version": "1.0.0", "version": "1.0.0",
"description": "gosdn-web allows to interact with a goSDN via its gRPC-API", "description": "@danet/api allows to interact with a goSDN via its gRPC-API",
"main": "index.js", "main": "index.js",
"types": "index.d.ts", "types": "index.d.ts",
"files": [ "files": [
...@@ -23,5 +23,8 @@ ...@@ -23,5 +23,8 @@
"devDependencies": { "devDependencies": {
"@types/google-protobuf": "^3.15.4", "@types/google-protobuf": "^3.15.4",
"typescript": "^4.3.5" "typescript": "^4.3.5"
},
"publishConfig": {
"@danet:registry": "https://code.fbi.h-da.de/api/v4/projects/10184/packages/npm/"
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment