Setup NPM publishing config
This commit is contained in:
+26
-3
@@ -1,4 +1,4 @@
|
|||||||
image: node:20
|
image: node:22
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- publish
|
- publish
|
||||||
@@ -18,6 +18,29 @@ before_script:
|
|||||||
- npm install
|
- npm install
|
||||||
- npm run build
|
- 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).
|
# Publish the documentation to GitLab Pages (for now).
|
||||||
pages:
|
pages:
|
||||||
stage: publish
|
stage: publish
|
||||||
@@ -27,5 +50,5 @@ pages:
|
|||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- public
|
- public
|
||||||
# only:
|
only:
|
||||||
# - main
|
- development
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
* @monsterbitar
|
||||||
|
* @jimhamill
|
||||||
|
* @emergent-reasons
|
||||||
+4
-2
@@ -1,5 +1,7 @@
|
|||||||
{
|
{
|
||||||
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
|
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
|
||||||
"packages": ["packages/*"],
|
"packages": [
|
||||||
"version": "0.0.0"
|
"packages/*"
|
||||||
|
],
|
||||||
|
"version": "0.0.1"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"name": "@xocash/docs",
|
"name": "@xocash/docs",
|
||||||
|
"private": true,
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"description": "XO Cash Stack Documentation",
|
"description": "XO Cash Stack Documentation",
|
||||||
"private": true,
|
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"api": "typedoc --skipErrorChecking",
|
"api": "typedoc --skipErrorChecking",
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@xocash/json-payment-protocol-v2",
|
"name": "@xocash/json-payment-protocol-v2",
|
||||||
|
"private": true,
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"description": "JSON Payment Protocol V2",
|
"description": "JSON Payment Protocol V2",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
# XO Primitives
|
# XO Primitives
|
||||||
|
|
||||||
TODO
|
**NOTE: This package is EXTREMELY UNSTABLE and WILL BREAK frequently. DO NOT USE.**
|
||||||
|
|
||||||
|
A collection of useful BCH Primitives.
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@xocash/stack",
|
"name": "@xocash/stack",
|
||||||
|
"private": true,
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"description": "XO Cash Stack",
|
"description": "XO Cash Stack",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
|||||||
Reference in New Issue
Block a user