diff --git a/templates/npm_projects.gitlab-ci.yml b/templates/npm_projects.gitlab-ci.yml index e28db22d88e1b9a7cab153c2ec9c12edefad307a..d1f8779bd2bc980d97f768d31a8795d43f99bbd8 100644 --- a/templates/npm_projects.gitlab-ci.yml +++ b/templates/npm_projects.gitlab-ci.yml @@ -220,10 +220,12 @@ variables: # Allows to store generated documentation files inside a wiki repo specific to given project. Wiki repo must be explicitly created before using this job. # Documentation files coming to protected branches are committed into root directory in the wiki repo. All other changes are pushed into non-stable/<branch-name> subdirectory what allows to render them by wiki. .npm_push_doc_template: - extends: .npm_based_job_base + extends: .npm_process_built_package_tarball variables: # Must be overrided by derived job WIKI_PUSH_TOKEN: "" + # Path to the built package tarball - it should be overrided by derived job + PACKAGE_TGZ_PATH: "" # The directory containing sources to be built - it can be overrided by derived job SOURCE_DIR: "${CI_PROJECT_DIR}" @@ -235,9 +237,10 @@ variables: DOC_URL: "" before_script: + - !reference [.npm_process_built_package_tarball, , before_script] # start always at project root dir, to make sure .env file (included in artifacts) is generated there - cd "${CI_PROJECT_DIR}" - - /home/emscripten/scripts/npm_push_doc.sh "${PROJECT_URL}" "${CI_COMMIT_REF_NAME}" "${CI_COMMIT_REF_PROTECTED}" + - /home/emscripten/scripts/npm_set_doc_url.sh "${PROJECT_URL}" "${CI_COMMIT_REF_NAME}" "${CI_COMMIT_REF_PROTECTED}" after_script: - cd "${CI_PROJECT_DIR}"