Merge branch 'use_traditional_deploy' into 'development'

Try traditional pubish as opposed to Lerna

See merge request GeneralProtocols/xo/stack!14
This commit is contained in:
Jim Hamill
2025-01-13 02:50:15 +00:00
+4 -3
View File
@@ -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