Skip to content
Snippets Groups Projects
Commit f6981dd0 authored by Lopez de Guereña Caballero, Jon's avatar Lopez de Guereña Caballero, Jon
Browse files

added npm readme

parent 6b4a9026
No related branches found
No related tags found
No related merge requests found
# Include jobs from external YAML files
You can include the jobs in this repository's YAML files as follows:
```yml
include:
- https://git.code.tecnalia.com/digicon-webxr-store/ci-files/-/raw/master/npm-packages/artifactory.yml
- https://git.code.tecnalia.com/digicon-webxr-store/ci-files/-/raw/master/npm-packages/build.yml
- https://git.code.tecnalia.com/digicon-webxr-store/ci-files/-/raw/master/npm-packages/pages.yml
```
## jobs
### build
Check if dependencies exists.
### artifactory
Publish the package to Artifactory.
### pages
Trys to run the build process, and creates a dist folder with the result. Allowing to display an static website.
## Example
An example of a valid .gitlab-ci.yml can be:
```yml
include:
- https://git.code.tecnalia.com/digicon-webxr-store/ci-files/-/raw/master/npm-packages/build.yml
- https://git.code.tecnalia.com/digicon-webxr-store/ci-files/-/raw/master/npm-packages/artifactory.yml
stages:
- build
- deploy
```
image: $ACR_URL/node:12
before_script:
- npm -g config set user root
- npm install -g jfrog-cli-go
cache:
paths:
- node_modules/
job:
tags:
- docker
script:
- jfrog rt c import $ARTIFACTORY_CI_CONFIGURATION
- jfrog rt use TRIArtifact
- jfrog rt ping
- jfrog rt npm-install --build-name=$CI_PROJECT_NAME --build-number=$CI_JOB_ID
- jfrog rt npm-publish --build-name=$CI_PROJECT_NAME --build-number=$CI_JOB_ID
- jfrog rt bce $CI_PROJECT_NAME $CI_JOB_ID
- jfrog rt bp $CI_PROJECT_NAME $CI_JOB_ID
only:
- tags
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment