@openbox/shared-types
TypeScript icon, indicating that this package has built-in type declarations

0.5.40 • Public • Published

Quick Start

Requirements

  1. NodeJS 16.19.0 (preferiblemente NVM)
  2. Yarn

Ejecutar los siguientes comandos

Cambiar a NodeJS 16.19.0

nvm use v16.19.0

Instalar Yarn globalmente

npm install -g yarn

Instalar dependencias y inicializar hooks

$ yarn install && yarn husky install

CI/CD

Automatic NPM Publishing

This repository includes a GitHub Action workflow that automatically publishes the package to NPM when changes are merged into the development branch.

Workflow Overview

  • Trigger: Pushes to development branch
  • Build Process: Install dependencies, run linting, formatting checks, and build the package
  • Publishing: Automatically publishes to NPM registry if the version doesn't already exist
  • Version Management: Checks if the current package.json version exists on NPM before publishing

Setup Requirements

  1. NPM Token: Add NPM_TOKEN secret to repository settings with a valid NPM authentication token
  2. Version Management: Update version in package.json before merging to development branch
  3. Package Access: The workflow publishes with --access public for scoped packages

Workflow Steps

  1. Build Job:

    • Checkout code
    • Setup Node.js 16.19.0
    • Install dependencies with frozen lockfile
    • Run linting (yarn lint)
    • Run formatting check (yarn format:check)
    • Build package (yarn build)
    • Upload build artifacts
  2. Publish Job:

    • Download build artifacts
    • Check if version exists on NPM
    • Publish to NPM (if version is new)
    • Skip publishing if version already exists

Manual Publishing

If you need to publish manually:

# Build the package
yarn build

# Publish to NPM
npm publish --access public

/@openbox/shared-types/

    Package Sidebar

    Install

    npm i @openbox/shared-types

    Weekly Downloads

    400

    Version

    0.5.40

    License

    ISC

    Unpacked Size

    334 kB

    Total Files

    1378

    Last publish

    Collaborators

    • geaguirre