Skip to content
Snippets Groups Projects
Verified Commit 9dc2f646 authored by Philipp S. Sommer's avatar Philipp S. Sommer
Browse files

deploy package to npm

parent eecf88ec
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,7 @@
"documentation_url": "https://dasf.readthedocs.io/projects/web-component/en/latest/",
"use_markdown_for_documentation": "yes",
"deploy_package_in_ci": "yes",
"deploy_package_to_npm": "no",
"deploy_package_to_npm": "yes",
"deploy_pages_in_ci": "no",
"_extensions": ["local_extensions.UnderlinedExtension"],
"_template": "https://codebase.helmholtz.cloud/hcdc/software-templates/react-package-template.git"
......
......@@ -87,3 +87,16 @@ deploy-package:
- echo "@dasf:registry=https://${CI_SERVER_HOST}/api/v4/projects/${CI_PROJECT_ID}/packages/npm/" > .npmrc
- echo "//${CI_SERVER_HOST}/api/v4/projects/${CI_PROJECT_ID}/packages/npm/:_authToken=${CI_JOB_TOKEN}" >> .npmrc
- npm publish
deploy-package-to-npm:
stage: deploy
needs:
- build-package
- test-docs
- test
only:
- tags
script:
- echo "@dasf:registry=https://registry.npmjs.org/" > .npmrc
- echo "//registry.npmjs.org/:_authToken=${NPM_ACCESS_TOKEN}" >> .npmrc
- npm publish --access public
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