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:
+4
-3
@@ -29,11 +29,12 @@ publish:development:
|
|||||||
variables:
|
variables:
|
||||||
NPM_TAG: 'development'
|
NPM_TAG: 'development'
|
||||||
script:
|
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".
|
# 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}
|
- 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:
|
only:
|
||||||
- development
|
- development
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user