10000 GitHub - teddyful/teddy-releaser: Create a release of Teddy.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

teddyful/teddy-releaser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Teddy Releaser

Create a release of Teddy.

teddyful.com

Table of Contents

1. Introduction
2. Prerequisites
3. Setup
4. Usage
5. Further Information

1. Introduction

The Teddy releaser app runs all tests and then creates the archive (.zip and .tgz) and checksum (SHA-256) files that must be attached to an official release of Teddy.

Back to Top ▲

2. Prerequisites

Please ensure that the following required software services are installed in your environment.

  • Git - Distributed version control system.
  • Node.js - JavaScript runtime environment.

Back to Top ▲

3. Setup

Clone the teddy-releaser repository to a directory of your choice. Navigate into this directory and ensure that the main branch is checked out. Then install the required dependencies using NPM as follows.

# Clone the teddy-releaser app.
git clone https://github.com/teddyful/teddy-releaser.git

# Navigate into teddy-releaser.
cd teddy-releaser

# Checkout the main branch (default).
git checkout main

# Install the required dependencies.
npm install

Back to Top ▲

4. Usage

Build a Release

To build a release, run either npm run build or node build.js and provide the following mandatory command-line arguments.

--repo <repo>

The absolute path to the local Teddy repository that will be used to build a release of Teddy.

Example

# Build a release of Teddy.
npm run build -- --repo /home/teddyful/teddy

           _     _
          ( \---/ )
           ) . . (
 ____,--._(___Y___)_,--.____
     `--'           `--'
            TEDDY
         teddyful.com
 ___________________________


2025-03-11 14:51:31.860 [Teddy Releaser] INFO: Started the Teddy release builder app (v0.0.1).
2025-03-11 14:51:31.862 [Teddy Releaser] INFO: Teddy repo: /home/teddyful/teddy
2025-03-11 14:51:31.862 [Teddy Releaser] INFO: Building the release ...
2025-03-11 14:51:31.863 [Teddy Releaser] INFO: Stage 1 of 7 - Validating the repository...
2025-03-11 14:51:31.864 [Teddy Releaser] INFO: Stage 2 of 7 - Parsing the release version number...
2025-03-11 14:51:31.864 [Teddy Releaser] INFO: Stage 3 of 7 - Clearing the release directory...
2025-03-11 14:51:31.987 [Teddy Releaser] INFO: Stage 4 of 7 - Running tests...
2025-03-11 14:51:35.081 [Teddy Releaser] INFO: Stage 5 of 7 - Creating the release directory...
2025-03-11 14:51:35.082 [Teddy Releaser] INFO: Stage 6 of 7 - Creating archives...
2025-03-11 14:51:37.861 [Teddy Releaser] INFO: Stage 7 of 7 - Generating checksums...
2025-03-11 14:51:37.878 [Teddy Releaser] INFO: Successfully finished building the release!
2025-03-11 14:51:37.878 [Teddy Releaser] INFO: Release version number: 0.0.1
2025-03-11 14:51:37.879 [Teddy Releaser] INFO: Release build directory: ./releases/0.0.1
2025-03-11 14:51:37.879 [Teddy Releaser] INFO: Exiting the Teddy release builder app (exitCode = 0).

Help

Run npm run build -- -h or node build.js -h to see a complete list of usage options.

Release Files

The built release files will be created in teddy-releaser/releases/{version}, where {version} is extracted from {repo}/package.json, and consist of the following:

  • teddy-{version}.tgz
  • teddy-{version}.zip
  • teddy-{version}-checksums.txt (SHA-256 and hex encoding)

Note that if any of the tests fail, then the release files will not be created.

Back to Top ▲

5. Further Information

For further information, please visit teddyful.com.

Back to Top ▲

About

Create a release of Teddy.

Topics

Resources

License

Stars

Watchers

Forks

0