From b2e02208704bce6753ec31443e670a6fd00e4608 Mon Sep 17 00:00:00 2001 From: mtyszczak <mateusz.tyszczak@gmail.com> Date: Fri, 21 Feb 2025 15:32:29 +0100 Subject: [PATCH] Fix npm_push_doc_template stage --- templates/npm_projects.gitlab-ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/templates/npm_projects.gitlab-ci.yml b/templates/npm_projects.gitlab-ci.yml index e28db22..d1f8779 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}" -- GitLab