diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4f74078..b6542e6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,4 @@ -image: node:20 +image: node:22 stages: - publish @@ -18,6 +18,29 @@ before_script: - npm install - npm run build +.publish_to_npm: + # Configure which stage in the pipeline this part should be run in. + stage: publish + + script: + - npm config set //registry.npmjs.org/:_authToken ${NPM_AUTH_TOKEN} + - npx lerna publish from-package --no-private --yes --registry https://registry.npmjs.org/ --tag ${NPM_TAG} + +publish:development: + # Configure what tag to use for this publication. + 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 + + only: + - development + + # Use the common template to publish the library. + extends: .publish_to_npm + # Publish the documentation to GitLab Pages (for now). pages: stage: publish @@ -27,5 +50,5 @@ pages: artifacts: paths: - public -# only: -# - main + only: + - development diff --git a/CODEOWNERS b/CODEOWNERS new file mode 100644 index 0000000..98d8015 --- /dev/null +++ b/CODEOWNERS @@ -0,0 +1,3 @@ +* @monsterbitar +* @jimhamill +* @emergent-reasons diff --git a/lerna.json b/lerna.json index a293d19..6998f2a 100644 --- a/lerna.json +++ b/lerna.json @@ -1,5 +1,7 @@ { "$schema": "node_modules/lerna/schemas/lerna-schema.json", - "packages": ["packages/*"], - "version": "0.0.0" + "packages": [ + "packages/*" + ], + "version": "0.0.1" } diff --git a/packages/docs/package.json b/packages/docs/package.json index b154866..bd34ff0 100644 --- a/packages/docs/package.json +++ b/packages/docs/package.json @@ -1,8 +1,8 @@ { "name": "@xocash/docs", + "private": true, "version": "0.0.1", "description": "XO Cash Stack Documentation", - "private": true, "type": "module", "scripts": { "api": "typedoc --skipErrorChecking", diff --git a/packages/json-payment-protocol-v2/package.json b/packages/json-payment-protocol-v2/package.json index 21c6474..6baac3d 100644 --- a/packages/json-payment-protocol-v2/package.json +++ b/packages/json-payment-protocol-v2/package.json @@ -1,5 +1,6 @@ { "name": "@xocash/json-payment-protocol-v2", + "private": true, "version": "0.0.1", "description": "JSON Payment Protocol V2", "type": "module", diff --git a/packages/primitives/README.md b/packages/primitives/README.md index f452657..f959a5e 100644 --- a/packages/primitives/README.md +++ b/packages/primitives/README.md @@ -1,3 +1,5 @@ # XO Primitives -TODO +**NOTE: This package is EXTREMELY UNSTABLE and WILL BREAK frequently. DO NOT USE.** + +A collection of useful BCH Primitives. diff --git a/packages/stack/package.json b/packages/stack/package.json index 5a3fbf1..30786a0 100644 --- a/packages/stack/package.json +++ b/packages/stack/package.json @@ -1,5 +1,6 @@ { "name": "@xocash/stack", + "private": true, "version": "0.0.1", "description": "XO Cash Stack", "type": "module",