11 Commits

Author SHA1 Message Date
Trez.One 463e2b5545 Re-doing bundling...
Release Bundled Action / release (push) Successful in 1m51s
Renovate / renovate (push) Successful in 5m46s
2025-11-19 13:51:13 -05:00
Trez.One 9a7015553a Removing original ./index.js.
Release Bundled Action / release (push) Successful in 1m55s
Renovate / renovate (push) Failing after 4m34s
2025-11-19 13:16:11 -05:00
Trez.One 8987d79032 Updating path for index.js.
Release Bundled Action / release (push) Successful in 1m22s
Renovate / renovate (push) Failing after 5m23s
2025-11-19 11:54:35 -05:00
Trez.One 8413df888a Fixing Gitea token for release step.
Release Bundled Action / release (push) Successful in 4m35s
2025-11-19 11:30:35 -05:00
Trez.One 5c7f2adf5c Build dist for release v1.0.0 2025-11-19 16:23:58 +00:00
Trez.One 9879b5336c Change in commits.
Release Bundled Action / release (push) Failing after 1m14s
2025-11-19 11:22:51 -05:00
Trez.One 295105e0f2 Updating package-lock.json
Release Bundled Action / release (push) Failing after 1m29s
2025-11-19 11:12:49 -05:00
Trez.One b63f40b5ed Updating Github release step.
Release Bundled Action / release (push) Failing after 31s
2025-11-19 11:09:43 -05:00
Trez.One 86f9d43de1 Bundling ncc.
Release Bundled Action / release (push) Failing after 45s
Renovate / renovate (push) Failing after 4m51s
2025-11-19 10:51:51 -05:00
Trez.One 026e43ca88 test: Manual CHANGELOG 2025-11-19 10:38:09 -05:00
Trez.One 31e1870ea1 chore: initial setup for fork release workflow.
Renovate / renovate (push) Failing after 4m6s
Release Bundled Action / release (push) Failing after 10s
2025-11-19 10:29:42 -05:00
10 changed files with 3930 additions and 47 deletions
@@ -0,0 +1,19 @@
{
"packages": {
".": {
"release-type": "simple",
"bump-minor-pre-major": true,
"changelog-type": "github-changelog",
"include-component-in-tag": false,
"changelog-path": "CHANGELOG.md",
"version-file": "package.json",
"pull-request-title-pattern": "chore(release): {{version}}",
"tag-separator": "",
"monorepo-tags": false
}
},
"branch": "main",
"semantic": "true",
"changelog-preserve-commits": false,
"update-notes": true
}
+70
View File
@@ -0,0 +1,70 @@
name: Release Bundled Action
on:
push:
tags:
- "v*.*.*"
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
# 1️⃣ Checkout repository
- uses: actions/checkout@v4
# 2️⃣ Set up Node
- uses: actions/setup-node@v4
with:
node-version: 20
# 3️⃣ Install dependencies
- run: npm ci
# 4️⃣ Bundle the action via ncc
- name: Bundle the action
run: npx @vercel/ncc build action.js -o dist
# 5️⃣ Commit dist/ back to repo
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Build dist for release ${{ github.ref_name }}"
file_pattern: dist/**
branch: main # Push to main, not the tag
commit_user_name: github-actions[bot]
commit_user_email: github-actions[bot]@users.noreply.github.com
push: true
# 6️⃣ Create Gitea release & generate changelog/release notes
- name: Gitea Release & Versioning
uses: joaquinjsb/gitea-release-please-action@v4
id: gitea_release
with:
token: ${{ secrets.BOT_GITEA_TOKEN }}
release-type: simple
github-api-url: ${{ gitea.api_url }}
branch: main # Point to main branch
config-file: release-please-config.json
# 7️⃣ Create GitHub release with release notes
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.gitea_release.outputs.tag_name }}
name: Release ${{ steps.gitea_release.outputs.tag_name }}
body: ${{ steps.gitea_release.outputs.release_notes }}
env:
GITHUB_TOKEN: ${{ secrets.RENOVATE_BOT_TOKEN }}
# 8️⃣ Auto-update major tag for workflows
- name: Update major version tag
run: |
tag="${{ steps.gitea_release.outputs.tag_name }}"
major="v${tag#v}"
major="${major%%.*}"
echo "Updating major tag: $major → $tag"
git tag -f "$major"
git push -f origin "$major"
+5 -7
View File
@@ -1,8 +1,6 @@
# 1.0.0 (2022-08-16)
# Changelog
### Bug Fixes
* cleaning up documentation ([5e352a5](https://github.com/justinm/actions-ansi-to-html/commit/5e352a5fe467cafbce57330f31439b523a6a7afa))
* do not run windows testing ([63c0f44](https://github.com/justinm/actions-ansi-to-html/commit/63c0f441a6d3998b529a9ad38dfba3d416e62210))
* missing release lib ([9a65b19](https://github.com/justinm/actions-ansi-to-html/commit/9a65b19ef6e8ba512778399b16a20166ef626c08))
### [v1.0.0] - 2025-11-19
* Forked from justinm/actions-ansi-to-html@v1.2.3
* Applied CI/Gitea workflow improvements
* Bundled `/dist` via ncc
+12 -11
View File
@@ -5,9 +5,7 @@ import fs from "fs";
export function main() {
const converter = new Converter();
const input = core.getInput("input", { required: false });
const encoding = core.getInput("encoding", {
required: true,
});
const encoding = core.getInput("encoding", { required: true });
const path = core.getInput("path", { required: false });
if (!input && !path) {
@@ -15,20 +13,23 @@ export function main() {
}
if (input && path) {
return core.setFailed(
"You must provide either an input or path, not both."
);
return core.setFailed("You must provide either an input or path, not both.");
}
if (input && input !== "") {
if (input) {
core.setOutput("contents", converter.toHtml(input));
} else if (path && path !== "") {
} else {
if (!fs.existsSync(path)) {
return core.setFailed(`Path ${path} does not exist.`);
}
const rawContents = fs.readFileSync(path).toString(encoding);
core.setOutput("contents", converter.toHtml(rawContents));
const raw = fs.readFileSync(path).toString(encoding);
core.setOutput("contents", converter.toHtml(raw));
}
}
try {
main();
} catch (err) {
core.setFailed(err.message);
}
+1 -1
View File
@@ -20,4 +20,4 @@ outputs:
description: "The input or contents of path where all ANSI codes have been replaced with HTML color codes."
runs:
using: "node16"
main: "./index.js"
main: "dist/index.js"
+3796
View File
File diff suppressed because one or more lines are too long
+3
View File
@@ -0,0 +1,3 @@
{
"type": "module"
}
-3
View File
@@ -1,3 +0,0 @@
import { main } from "./action.js";
main();
+21 -24
View File
@@ -24,6 +24,7 @@
"@semantic-release/release-notes-generator": "^10.0.3",
"@types/jest": "^28.1.7",
"@types/node": "^18.7.3",
"@vercel/ncc": "^0.36.1",
"babel-jest": "^28.1.3",
"chalk": "^4.1.2",
"conventional-changelog-conventionalcommits": "^5.0.0",
@@ -106,7 +107,6 @@
"resolved": "https://registry.npmjs.org/@babel/core/-/core-7.18.10.tgz",
"integrity": "sha512-JQM6k6ENcBFKVtWvLavlvi/mPcpYZ3+R+2EySDEMSMbp7Mn4FexlbbJVrx2R7Ijhr01T8gyqrOaABWIOgxeUyw==",
"dev": true,
"peer": true,
"dependencies": {
"@ampproject/remapping": "^2.1.0",
"@babel/code-frame": "^7.18.6",
@@ -2413,7 +2413,6 @@
"version": "3.6.0",
"resolved": "https://registry.npmjs.org/@octokit/core/-/core-3.6.0.tgz",
"integrity": "sha512-7RKRKuA4xTjMhY+eG3jthb3hlZCsOwg3rztWh75Xc+ShDWOfDDATWbeZpAHBNRpm4Tv9WgBMOy1zEJYXG6NJ7Q==",
"peer": true,
"dependencies": {
"@octokit/auth-token": "^2.4.4",
"@octokit/graphql": "^4.5.8",
@@ -2536,7 +2535,6 @@
"resolved": "https://registry.npmjs.org/@octokit/core/-/core-4.0.5.tgz",
"integrity": "sha512-4R3HeHTYVHCfzSAi0C6pbGXV8UDI5Rk+k3G7kLVNckswN9mvpOzW9oENfjfH3nEmzg8y3AmKmzs8Sg6pLCeOCA==",
"dev": true,
"peer": true,
"dependencies": {
"@octokit/auth-token": "^3.0.0",
"@octokit/graphql": "^5.0.0",
@@ -3280,12 +3278,21 @@
"url": "https://opencollective.com/typescript-eslint"
}
},
"node_modules/@vercel/ncc": {
"version": "0.36.1",
"resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.36.1.tgz",
"integrity": "sha512-S4cL7Taa9yb5qbv+6wLgiKVZ03Qfkc4jGRuiUQMQ8HGBD5pcNRnHeYM33zBvJE4/zJGjJJ8GScB+WmTsn9mORw==",
"dev": true,
"license": "MIT",
"bin": {
"ncc": "dist/ncc/cli.js"
}
},
"node_modules/acorn": {
"version": "8.8.0",
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.0.tgz",
"integrity": "sha512-QOxyigPVrpZ2GXT+PFyZTl6TtOFc5egxHIP9IlQ+RbupQuX4RkT/Bee4/kQuC02Xkzg84JcT7oLYtDIQxp+v7w==",
"dev": true,
"peer": true,
"bin": {
"acorn": "bin/acorn"
},
@@ -3674,7 +3681,6 @@
"url": "https://tidelift.com/funding/github/npm/browserslist"
}
],
"peer": true,
"dependencies": {
"caniuse-lite": "^1.0.30001370",
"electron-to-chromium": "^1.4.202",
@@ -4393,7 +4399,6 @@
"resolved": "https://registry.npmjs.org/eslint/-/eslint-8.22.0.tgz",
"integrity": "sha512-ci4t0sz6vSRKdmkOGmprBo6fmI4PrphDFMy5JEq/fNS0gQkJM3rLmrqcp8ipMcdobH3KtUP40KniAE9W19S4wA==",
"dev": true,
"peer": true,
"dependencies": {
"@eslint/eslintrc": "^1.3.0",
"@humanwhocodes/config-array": "^0.10.4",
@@ -6927,7 +6932,6 @@
"resolved": "https://registry.npmjs.org/marked/-/marked-4.0.18.tgz",
"integrity": "sha512-wbLDJ7Zh0sqA0Vdg6aqlbT+yPxqLblpAZh1mK2+AO2twQkPywvvqQNfEPVwSSRjZ7dZcdeVBIAgiO7MMp3Dszw==",
"dev": true,
"peer": true,
"bin": {
"marked": "bin/marked.js"
},
@@ -10185,7 +10189,6 @@
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz",
"integrity": "sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==",
"dev": true,
"peer": true,
"bin": {
"prettier": "bin-prettier.js"
},
@@ -10773,7 +10776,6 @@
"resolved": "https://registry.npmjs.org/semantic-release/-/semantic-release-19.0.3.tgz",
"integrity": "sha512-HaFbydST1cDKZHuFZxB8DTrBLJVK/AnDExpK0s3EqLIAAUAHUgnd+VSJCUtTYQKkAkauL8G9CucODrVCc7BuAA==",
"dev": true,
"peer": true,
"dependencies": {
"@semantic-release/commit-analyzer": "^9.0.2",
"@semantic-release/error": "^3.0.0",
@@ -11539,7 +11541,6 @@
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.7.4.tgz",
"integrity": "sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==",
"dev": true,
"peer": true,
"bin": {
"tsc": "bin/tsc",
"tsserver": "bin/tsserver"
@@ -11978,7 +11979,6 @@
"resolved": "https://registry.npmjs.org/@babel/core/-/core-7.18.10.tgz",
"integrity": "sha512-JQM6k6ENcBFKVtWvLavlvi/mPcpYZ3+R+2EySDEMSMbp7Mn4FexlbbJVrx2R7Ijhr01T8gyqrOaABWIOgxeUyw==",
"dev": true,
"peer": true,
"requires": {
"@ampproject/remapping": "^2.1.0",
"@babel/code-frame": "^7.18.6",
@@ -13653,7 +13653,6 @@
"version": "3.6.0",
"resolved": "https://registry.npmjs.org/@octokit/core/-/core-3.6.0.tgz",
"integrity": "sha512-7RKRKuA4xTjMhY+eG3jthb3hlZCsOwg3rztWh75Xc+ShDWOfDDATWbeZpAHBNRpm4Tv9WgBMOy1zEJYXG6NJ7Q==",
"peer": true,
"requires": {
"@octokit/auth-token": "^2.4.4",
"@octokit/graphql": "^4.5.8",
@@ -13762,7 +13761,6 @@
"resolved": "https://registry.npmjs.org/@octokit/core/-/core-4.0.5.tgz",
"integrity": "sha512-4R3HeHTYVHCfzSAi0C6pbGXV8UDI5Rk+k3G7kLVNckswN9mvpOzW9oENfjfH3nEmzg8y3AmKmzs8Sg6pLCeOCA==",
"dev": true,
"peer": true,
"requires": {
"@octokit/auth-token": "^3.0.0",
"@octokit/graphql": "^5.0.0",
@@ -14337,12 +14335,17 @@
"eslint-visitor-keys": "^3.3.0"
}
},
"@vercel/ncc": {
"version": "0.36.1",
"resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.36.1.tgz",
"integrity": "sha512-S4cL7Taa9yb5qbv+6wLgiKVZ03Qfkc4jGRuiUQMQ8HGBD5pcNRnHeYM33zBvJE4/zJGjJJ8GScB+WmTsn9mORw==",
"dev": true
},
"acorn": {
"version": "8.8.0",
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.0.tgz",
"integrity": "sha512-QOxyigPVrpZ2GXT+PFyZTl6TtOFc5egxHIP9IlQ+RbupQuX4RkT/Bee4/kQuC02Xkzg84JcT7oLYtDIQxp+v7w==",
"dev": true,
"peer": true
"dev": true
},
"acorn-jsx": {
"version": "5.3.2",
@@ -14632,7 +14635,6 @@
"resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.3.tgz",
"integrity": "sha512-898rgRXLAyRkM1GryrrBHGkqA5hlpkV5MhtZwg9QXeiyLUYs2k00Un05aX5l2/yJIOObYKOpS2JNo8nJDE7fWQ==",
"dev": true,
"peer": true,
"requires": {
"caniuse-lite": "^1.0.30001370",
"electron-to-chromium": "^1.4.202",
@@ -15169,7 +15171,6 @@
"resolved": "https://registry.npmjs.org/eslint/-/eslint-8.22.0.tgz",
"integrity": "sha512-ci4t0sz6vSRKdmkOGmprBo6fmI4PrphDFMy5JEq/fNS0gQkJM3rLmrqcp8ipMcdobH3KtUP40KniAE9W19S4wA==",
"dev": true,
"peer": true,
"requires": {
"@eslint/eslintrc": "^1.3.0",
"@humanwhocodes/config-array": "^0.10.4",
@@ -17069,8 +17070,7 @@
"version": "4.0.18",
"resolved": "https://registry.npmjs.org/marked/-/marked-4.0.18.tgz",
"integrity": "sha512-wbLDJ7Zh0sqA0Vdg6aqlbT+yPxqLblpAZh1mK2+AO2twQkPywvvqQNfEPVwSSRjZ7dZcdeVBIAgiO7MMp3Dszw==",
"dev": true,
"peer": true
"dev": true
},
"marked-terminal": {
"version": "5.1.1",
@@ -19351,8 +19351,7 @@
"version": "2.7.1",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz",
"integrity": "sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==",
"dev": true,
"peer": true
"dev": true
},
"prettier-eslint": {
"version": "15.0.1",
@@ -19796,7 +19795,6 @@
"resolved": "https://registry.npmjs.org/semantic-release/-/semantic-release-19.0.3.tgz",
"integrity": "sha512-HaFbydST1cDKZHuFZxB8DTrBLJVK/AnDExpK0s3EqLIAAUAHUgnd+VSJCUtTYQKkAkauL8G9CucODrVCc7BuAA==",
"dev": true,
"peer": true,
"requires": {
"@semantic-release/commit-analyzer": "^9.0.2",
"@semantic-release/error": "^3.0.0",
@@ -20397,8 +20395,7 @@
"version": "4.7.4",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.7.4.tgz",
"integrity": "sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==",
"dev": true,
"peer": true
"dev": true
},
"uglify-js": {
"version": "3.16.3",
+3 -1
View File
@@ -14,7 +14,8 @@
"scripts": {
"lint": "eslint --ext js .",
"release": "npx semantic-release",
"test": "npx cross-env FORCE_COLOR=1 npx jest"
"test": "npx cross-env FORCE_COLOR=1 npx jest",
"build": "ncc build action.js -o dist"
},
"dependencies": {
"@actions/core": "^1.9.1",
@@ -32,6 +33,7 @@
"@semantic-release/release-notes-generator": "^10.0.3",
"@types/jest": "^28.1.7",
"@types/node": "^18.7.3",
"@vercel/ncc": "^0.36.1",
"babel-jest": "^28.1.3",
"chalk": "^4.1.2",
"conventional-changelog-conventionalcommits": "^5.0.0",