From afc2447484e08576b29541e5c1871e9cd33d1a19 Mon Sep 17 00:00:00 2001 From: Jim Hamill Date: Mon, 13 Jan 2025 02:50:15 +0000 Subject: [PATCH] Try traditional pubish as opposed to Lerna --- .gitlab-ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 245bf33..9a57226 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -29,11 +29,12 @@ publish:development: variables: NPM_TAG: 'development' script: - # add the NPM_TAG to the version field in the package file during this script - - sed -i -r "/version/s/([0-9\.]+)/\1-${NPM_TAG}.${CI_JOB_ID}/g" packages/primitives/package.json # set our npm token and then use lerna to publish all packages that are not marked as "private". - npm config set //registry.npmjs.org/:_authToken ${NPM_AUTH_TOKEN} - - npx lerna publish from-package --no-private --yes --registry https://registry.npmjs.org/ --dist-tag ${NPM_TAG} + # Publish Primitives + # NOTE: The "sed" command will append the JOB_ID version to the current package.json. + # TODO: Simplify this in future or use Lerna's "publish" command. + - (cd ./packages/primitives && sed -i -r "/version/s/([0-9\.]+)/\1-${NPM_TAG}.${CI_JOB_ID}/g" package.json && npm publish --tag ${NPM_TAG}) only: - development