Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wax
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
wax
Commits
8395c2a3
Verified
Commit
8395c2a3
authored
1 month ago
by
Mateusz Tyszczak
Browse files
Options
Downloads
Patches
Plain Diff
Add publishing wax packages
parent
d6a6d5ba
No related branches found
No related tags found
No related merge requests found
Pipeline
#116671
failed
1 month ago
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+52
-0
52 additions, 0 deletions
.gitlab-ci.yml
with
52 additions
and
0 deletions
.gitlab-ci.yml
+
52
−
0
View file @
8395c2a3
...
...
@@ -109,6 +109,32 @@ wax_wasm_build_tests:
tags
:
-
public-runner-docker
build_wax_extensions
:
stage
:
build
extends
:
.npm_process_built_package_tarball
variables
:
GIT_SUBMODULE_STRATEGY
:
recursive
SOURCE_DIR
:
"
${CI_PROJECT_DIR}/ts"
DIST_DIR
:
"
$CI_PROJECT_DIR/ts/wasm/dist"
PACKAGE_TGZ_PATH
:
"
${BUILT_PACKAGE_PATH}"
script
:
-
cd "${SOURCE_DIR}/packages"
-
pnpm install
-
pnpm run build
needs
:
-
job
:
wax_wasm_proto_tsc_generation
artifacts
:
true
artifacts
:
paths
:
-
"
${SOURCE_DIR}/packages/*/dist"
-
"
${SOURCE_DIR}/packages/*/package.json"
when
:
always
expire_in
:
1 week
generate_docs
:
stage
:
build
extends
:
.npm_process_built_package_tarball
...
...
@@ -346,6 +372,32 @@ deploy_wax_wasm_dev_package:
tags
:
-
public-runner-docker
deploy_wax_wasm_dev_extension_packages
:
extends
:
.npm_deploy_multiple_tgz_packages_template
stage
:
deploy
variables
:
SOURCE_DIR
:
"
${CI_PROJECT_DIR}/ts/packages"
DIST_DIR
:
"
${SOURCE_DIR}/dist"
GIT_SUBMODULE_STRATEGY
:
"
normal"
NPM_PACKAGE_SCOPE
:
"
@hiveio"
NPM_REGISTRY_URL
:
"
gitlab.syncad.com/api/v4/projects/${CI_PROJECT_ID}/packages/npm/"
NPM_PUBLISH_TOKEN
:
"
${CI_JOB_TOKEN}"
script
:
-
cd "${SOURCE_DIR}"
-
echo "//${NPM_REGISTRY_URL}:_authToken=\"${NPM_PUBLISH_TOKEN}\"" > "${SOURCE_DIR}/.npmrc"
-
echo "${NPM_PACKAGE_SCOPE}:registry=https://${NPM_REGISTRY_URL}" >> "${SOURCE_DIR}/.npmrc"
-
pnpm publish --no-git-checks --access public -r --tag $(jq -r '.version' "${CI_PROJECT_DIR}/ts/package.json")
needs
:
-
job
:
deploy_wax_wasm_dev_package
-
job
:
wax_wasm_proto_tsc_generation
artifacts
:
true
-
job
:
build_wax_extensions
artifacts
:
true
tags
:
-
public-runner-docker
deploy_wax_wasm_production_public_npm
:
extends
:
.registry_npmjs_org_deploy_package_template
stage
:
deploy
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment