diff --git a/npm-packages/artifactory_built.yml b/npm-packages/artifactory_built.yml index 2059f3b70bc02b961e35fde3fbfb7b9a197d5ff0..170e4b4d9e801b085c41d77f01c8cffbe3ba739e 100644 --- a/npm-packages/artifactory_built.yml +++ b/npm-packages/artifactory_built.yml @@ -7,14 +7,12 @@ artifactory: #needed to restore the artifats from the build stage dependencies: - build - # avoid restoring git repository + # avoid restoring git repository. We assume that the build process stores dist, package.json & .npmignore files variables: GIT_STRATEGY: none script: # connect job from artifactory_connect.yml - !reference [.connect, script] - # reconnect to artifactory - - jfrog rt ping #create a publish package - jfrog rt npm-publish --build-name=$CI_PROJECT_NAME --build-number=$CI_JOB_ID # save environment variables into thepackage diff --git a/npm-packages/build_typescript.yml b/npm-packages/build_typescript.yml index 4b08333a9b9c25f7800983e5bfd792862b048d77..a3927a37e4d9f53f8d3f43dc942fd8157ca06542 100644 --- a/npm-packages/build_typescript.yml +++ b/npm-packages/build_typescript.yml @@ -6,8 +6,11 @@ build: image: $ACR_URL/node:18.12.0 # cache build for the next jobs artifacts: - untracked: true expire_in: 1 day + paths: + - dist/ + - package.json + - .npmignore script: # connect job from artifactory_connect.yml - !reference [.connect, script]