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