Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
workerbee
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
workerbee
Merge requests
!28
Use common CI configuration scripts and configs
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Use common CI configuration scripts and configs
tm-use-common-ci-conf-2
into
main
Overview
0
Commits
5
Pipelines
25
Changes
2
Merged
Mateusz Tyszczak
requested to merge
tm-use-common-ci-conf-2
into
main
2 months ago
Overview
0
Commits
5
Pipelines
25
Changes
2
Expand
Requires
common-ci-configuration!74 (merged)
Edited
1 month ago
by
Bartek Wrona
0
0
Merge request reports
Viewing commit
4f5089d7
Show latest version
2 files
+
7
−
13
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
Verified
4f5089d7
Move supplement documentation url to the build step
· 4f5089d7
Mateusz Tyszczak
authored
2 months ago
.gitlab-ci.yml
+
6
−
12
Options
@@ -11,7 +11,7 @@ variables:
include
:
-
project
:
'
hive/common-ci-configuration'
ref
:
417f8021d442a09ca0541aca475d6c2f70f0d9f8
ref
:
0b70047bcc26560595d51b96b14a3d16ced511af
file
:
-
'
/templates/npm_projects.gitlab-ci.yml'
@@ -25,13 +25,7 @@ lint:
script
:
-
npm run lint-ci
supplement_documentation_url
:
stage
:
.pre
extends
:
.npm_generate_doc_url
variables
:
REPLACE_ENV_NAME
:
"
GEN_DOC_URL"
REPLACE_FILE_PATH
:
"
${CI_PROJECT_DIR}/README.md"
# Builds and supplements wiki URL so it is available in Wiki and published package README
build
:
stage
:
build
extends
:
.npm_build_template
@@ -39,12 +33,12 @@ build:
DIST_DIR
:
"
$CI_PROJECT_DIR/dist"
NPM_PACKAGE_SCOPE
:
"
@hiveio"
NPM_PACKAGE_NAME
:
"
workerbee"
REPLACE_DOC_URL_ENV
:
"
GEN_DOC_URL"
REPLACE_FILE_PATH
:
"
${CI_PROJECT_DIR}/README.md"
needs
:
-
job
:
lint
-
job
:
supplement_documentation_url
artifacts
:
true
# Generates documentation
and supplements wiki URL so it is available in Wiki and published package README
# Generates documentation
generate_docs
:
stage
:
build
extends
:
.npm_based_job_base
@@ -53,7 +47,7 @@ generate_docs:
script
:
-
scripts/generate_api_docs.sh "${CI_PROJECT_URL}" "${CI_COMMIT_SHA}"
needs
:
-
job
:
supplement_documentation_url
-
job
:
build
artifacts
:
true
artifacts
:
paths
:
Loading