Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2c89cc6a0a | |||
| bad663d5e4 | |||
| 4e1d211a14 | |||
| bd3b1ba9dd |
@@ -6,7 +6,7 @@ This directory contains Gitea Actions workflows for automated CI/CD of the SZCI
|
|||||||
|
|
||||||
### 1. CI (`ci.yml`)
|
### 1. CI (`ci.yml`)
|
||||||
|
|
||||||
**Trigger:** Push to `master` branch or pull requests
|
**Trigger:** Push to `main` branch or pull requests
|
||||||
|
|
||||||
**Purpose:** Continuous integration checks on every push
|
**Purpose:** Continuous integration checks on every push
|
||||||
|
|
||||||
@@ -87,7 +87,7 @@ To create a new release:
|
|||||||
3. **Create and push tag:**
|
3. **Create and push tag:**
|
||||||
```bash
|
```bash
|
||||||
git tag v6.0.1
|
git tag v6.0.1
|
||||||
git push origin master
|
git push origin main
|
||||||
git push origin v6.0.1
|
git push origin v6.0.1
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -3,10 +3,10 @@ name: CI
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- main
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check:
|
check:
|
||||||
|
|||||||
@@ -117,7 +117,7 @@ jobs:
|
|||||||
|
|
||||||
Use the installation script:
|
Use the installation script:
|
||||||
\`\`\`bash
|
\`\`\`bash
|
||||||
curl -sSL https://code.foss.global/ship.zone/szci/raw/branch/master/install.sh | sudo bash
|
curl -sSL https://code.foss.global/ship.zone/szci/raw/branch/main/install.sh | sudo bash
|
||||||
\`\`\`
|
\`\`\`
|
||||||
|
|
||||||
Or download the binary for your platform and make it executable.
|
Or download the binary for your platform and make it executable.
|
||||||
@@ -143,7 +143,7 @@ jobs:
|
|||||||
|
|
||||||
Use the installation script:
|
Use the installation script:
|
||||||
\`\`\`bash
|
\`\`\`bash
|
||||||
curl -sSL https://code.foss.global/ship.zone/szci/raw/branch/master/install.sh | sudo bash
|
curl -sSL https://code.foss.global/ship.zone/szci/raw/branch/main/install.sh | sudo bash
|
||||||
\`\`\`
|
\`\`\`
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
@@ -244,5 +244,5 @@ jobs:
|
|||||||
echo "https://code.foss.global/ship.zone/szci/releases/tag/${{ steps.version.outputs.version }}"
|
echo "https://code.foss.global/ship.zone/szci/releases/tag/${{ steps.version.outputs.version }}"
|
||||||
echo ""
|
echo ""
|
||||||
echo "Installation command:"
|
echo "Installation command:"
|
||||||
echo "curl -sSL https://code.foss.global/ship.zone/szci/raw/branch/master/install.sh | sudo bash"
|
echo "curl -sSL https://code.foss.global/ship.zone/szci/raw/branch/main/install.sh | sudo bash"
|
||||||
echo ""
|
echo ""
|
||||||
|
|||||||
7
.gitignore
vendored
7
.gitignore
vendored
@@ -1,17 +1,10 @@
|
|||||||
.nogit/
|
.nogit/
|
||||||
|
|
||||||
# artifacts
|
|
||||||
coverage/
|
|
||||||
public/
|
|
||||||
pages/
|
|
||||||
|
|
||||||
# installs
|
# installs
|
||||||
node_modules/
|
node_modules/
|
||||||
|
|
||||||
# caches
|
# caches
|
||||||
.yarn/
|
|
||||||
.cache/
|
.cache/
|
||||||
.rpt2_cache
|
|
||||||
|
|
||||||
# builds
|
# builds
|
||||||
dist/
|
dist/
|
||||||
|
|||||||
16
changelog.md
16
changelog.md
@@ -1,5 +1,21 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 2026-02-07 - 7.1.1 - fix(workflows)
|
||||||
|
normalize default branch to 'main' across CI/release workflows and docs; update package metadata; clean .gitignore and fix readme license link
|
||||||
|
|
||||||
|
- Updated workflow triggers and documentation from 'master' to 'main' (.gitea/workflows/ci.yml, .gitea/workflows/release.yml, .gitea/workflows/README.md) including install script URLs referenced in release instructions.
|
||||||
|
- Updated npmextra.json @git.zone/cli metadata: changed projectType from 'npm' to 'deno' and githost from 'gitlab.com' to 'code.foss.global'.
|
||||||
|
- Cleaned .gitignore by removing outdated entries (coverage/, public/, pages/, .yarn/, .rpt2_cache) and minor whitespace fixes.
|
||||||
|
- Normalized license filename link in readme.md from 'LICENSE' to lowercase 'license'.
|
||||||
|
|
||||||
|
## 2026-02-07 - 7.1.0 - feat(installer)
|
||||||
|
switch installer/docs to use main branch; add automated installer instructions and update CI examples to use the installer; add release registries and access level in npmextra.json
|
||||||
|
|
||||||
|
- Replaced master branch URLs with main in install.sh and README examples
|
||||||
|
- Added "Automated Installer (Recommended)" section to README with curl install examples (including versioned install)
|
||||||
|
- Replaced npm install -g @ship.zone/szci in CI examples with the curl-based installer invocation (some uses sudo)
|
||||||
|
- Updated npmextra.json: removed npmAccessLevel for @ship.zone/szci and added release.registries and release.accessLevel entries
|
||||||
|
|
||||||
## 2026-02-06 - 7.0.0 - BREAKING CHANGE(szci)
|
## 2026-02-06 - 7.0.0 - BREAKING CHANGE(szci)
|
||||||
delegate Docker operations to @git.zone/tsdocker, remove internal Docker managers and deprecated modules, simplify CLI and env var handling
|
delegate Docker operations to @git.zone/tsdocker, remove internal Docker managers and deprecated modules, simplify CLI and env var handling
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@ship.zone/szci",
|
"name": "@ship.zone/szci",
|
||||||
"version": "7.0.0",
|
"version": "7.1.1",
|
||||||
"exports": "./mod.ts",
|
"exports": "./mod.ts",
|
||||||
"nodeModulesDir": "auto",
|
"nodeModulesDir": "auto",
|
||||||
"tasks": {
|
"tasks": {
|
||||||
|
|||||||
@@ -5,10 +5,10 @@
|
|||||||
#
|
#
|
||||||
# Usage:
|
# Usage:
|
||||||
# Direct piped installation (recommended):
|
# Direct piped installation (recommended):
|
||||||
# curl -sSL https://code.foss.global/ship.zone/szci/raw/branch/master/install.sh | sudo bash
|
# curl -sSL https://code.foss.global/ship.zone/szci/raw/branch/main/install.sh | sudo bash
|
||||||
#
|
#
|
||||||
# With version specification:
|
# With version specification:
|
||||||
# curl -sSL https://code.foss.global/ship.zone/szci/raw/branch/master/install.sh | sudo bash -s -- --version v5.0.0
|
# curl -sSL https://code.foss.global/ship.zone/szci/raw/branch/main/install.sh | sudo bash -s -- --version v5.0.0
|
||||||
#
|
#
|
||||||
# Options:
|
# Options:
|
||||||
# -h, --help Show this help message
|
# -h, --help Show this help message
|
||||||
@@ -60,10 +60,10 @@ if [ $SHOW_HELP -eq 1 ]; then
|
|||||||
echo ""
|
echo ""
|
||||||
echo "Examples:"
|
echo "Examples:"
|
||||||
echo " # Install latest version"
|
echo " # Install latest version"
|
||||||
echo " curl -sSL https://code.foss.global/ship.zone/szci/raw/branch/master/install.sh | sudo bash"
|
echo " curl -sSL https://code.foss.global/ship.zone/szci/raw/branch/main/install.sh | sudo bash"
|
||||||
echo ""
|
echo ""
|
||||||
echo " # Install specific version"
|
echo " # Install specific version"
|
||||||
echo " curl -sSL https://code.foss.global/ship.zone/szci/raw/branch/master/install.sh | sudo bash -s -- --version v5.0.0"
|
echo " curl -sSL https://code.foss.global/ship.zone/szci/raw/branch/main/install.sh | sudo bash -s -- --version v5.0.0"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
{
|
{
|
||||||
"@ship.zone/szci": {
|
"@ship.zone/szci": {
|
||||||
"npmGlobalTools": [],
|
"npmGlobalTools": [],
|
||||||
"npmAccessLevel": "public",
|
|
||||||
"npmRegistryUrl": "registry.npmjs.org"
|
"npmRegistryUrl": "registry.npmjs.org"
|
||||||
},
|
},
|
||||||
"@git.zone/tsdocker": {
|
"@git.zone/tsdocker": {
|
||||||
@@ -9,9 +8,9 @@
|
|||||||
"command": "szci test stable"
|
"command": "szci test stable"
|
||||||
},
|
},
|
||||||
"@git.zone/cli": {
|
"@git.zone/cli": {
|
||||||
"projectType": "npm",
|
"projectType": "deno",
|
||||||
"module": {
|
"module": {
|
||||||
"githost": "gitlab.com",
|
"githost": "code.foss.global",
|
||||||
"gitscope": "ship.zone",
|
"gitscope": "ship.zone",
|
||||||
"gitrepo": "szci",
|
"gitrepo": "szci",
|
||||||
"description": "A tool to streamline Node.js and Docker workflows within CI environments, particularly GitLab CI, providing various CI/CD utilities.",
|
"description": "A tool to streamline Node.js and Docker workflows within CI environments, particularly GitLab CI, providing various CI/CD utilities.",
|
||||||
@@ -34,6 +33,13 @@
|
|||||||
"continuous integration",
|
"continuous integration",
|
||||||
"continuous deployment"
|
"continuous deployment"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"release": {
|
||||||
|
"registries": [
|
||||||
|
"https://verdaccio.lossless.digital",
|
||||||
|
"https://registry.npmjs.org"
|
||||||
|
],
|
||||||
|
"accessLevel": "public"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@ship.zone/szci",
|
"name": "@ship.zone/szci",
|
||||||
"version": "7.0.0",
|
"version": "7.1.1",
|
||||||
"description": "Serve Zone CI - A tool to streamline Node.js and Docker workflows within CI environments, particularly GitLab CI, providing various CI/CD utilities. Powered by Deno with standalone executables.",
|
"description": "Serve Zone CI - A tool to streamline Node.js and Docker workflows within CI environments, particularly GitLab CI, providing various CI/CD utilities. Powered by Deno with standalone executables.",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"Node.js",
|
"Node.js",
|
||||||
|
|||||||
22
readme.md
22
readme.md
@@ -32,6 +32,20 @@ SmartCLI Router
|
|||||||
|
|
||||||
## 📥 Installation
|
## 📥 Installation
|
||||||
|
|
||||||
|
### Automated Installer (Recommended)
|
||||||
|
|
||||||
|
The easiest way to install szci is using the automated installer script. It handles platform detection, binary download, and global setup:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
curl -sSL https://code.foss.global/ship.zone/szci/raw/branch/main/install.sh | sudo bash
|
||||||
|
```
|
||||||
|
|
||||||
|
To install a specific version:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
curl -sSL https://code.foss.global/ship.zone/szci/raw/branch/main/install.sh | sudo bash -s -- --version v7.0.0
|
||||||
|
```
|
||||||
|
|
||||||
### Via NPM (downloads pre-compiled binary)
|
### Via NPM (downloads pre-compiled binary)
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
@@ -234,7 +248,7 @@ stages:
|
|||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- npm install -g @ship.zone/szci
|
- curl -sSL https://code.foss.global/ship.zone/szci/raw/branch/main/install.sh | bash
|
||||||
|
|
||||||
prepare:
|
prepare:
|
||||||
stage: prepare
|
stage: prepare
|
||||||
@@ -278,7 +292,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install szci
|
- name: Install szci
|
||||||
run: npm install -g @ship.zone/szci
|
run: curl -sSL https://code.foss.global/ship.zone/szci/raw/branch/main/install.sh | sudo bash
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
run: szci node install stable
|
run: szci node install stable
|
||||||
@@ -305,7 +319,7 @@ steps:
|
|||||||
- name: ci
|
- name: ci
|
||||||
image: node:22
|
image: node:22
|
||||||
commands:
|
commands:
|
||||||
- npm install -g @ship.zone/szci
|
- curl -sSL https://code.foss.global/ship.zone/szci/raw/branch/main/install.sh | bash
|
||||||
- szci node install stable
|
- szci node install stable
|
||||||
- szci npm install
|
- szci npm install
|
||||||
- szci docker build
|
- szci docker build
|
||||||
@@ -357,7 +371,7 @@ deno task lint
|
|||||||
|
|
||||||
## License and Legal Information
|
## License and Legal Information
|
||||||
|
|
||||||
This repository contains open-source code licensed under the MIT License. A copy of the license can be found in the [LICENSE](./LICENSE) file.
|
This repository contains open-source code licensed under the MIT License. A copy of the license can be found in the [license](./license) file.
|
||||||
|
|
||||||
**Please note:** The MIT License does not grant permission to use the trade names, trademarks, service marks, or product names of the project, except as required for reasonable and customary use in describing the origin of the work and reproducing the content of the NOTICE file.
|
**Please note:** The MIT License does not grant permission to use the trade names, trademarks, service marks, or product names of the project, except as required for reasonable and customary use in describing the origin of the work and reproducing the content of the NOTICE file.
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@ship.zone/szci',
|
name: '@ship.zone/szci',
|
||||||
version: '7.0.0',
|
version: '7.1.1',
|
||||||
description: 'Serve Zone CI - A tool to streamline Node.js and Docker workflows within CI environments, particularly GitLab CI, providing various CI/CD utilities. Powered by Deno with standalone executables.'
|
description: 'Serve Zone CI - A tool to streamline Node.js and Docker workflows within CI environments, particularly GitLab CI, providing various CI/CD utilities. Powered by Deno with standalone executables.'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user