fix: explicit lowercasing for ghcr and add repository metadata

This commit is contained in:
RY4N
2026-03-27 01:22:12 +06:00
parent 96da2c73a9
commit aa60f07617
2 changed files with 14 additions and 2 deletions

View File

@@ -127,11 +127,15 @@ jobs:
id: pkg_version
run: echo "VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT
- name: Lowercase image name
id: image_name_step
run: echo "IMAGE_NAME_LOWER=$(echo ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_OUTPUT
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
images: ${{ steps.image_name_step.outputs.IMAGE_NAME_LOWER }}
tags: |
type=raw,value=latest
type=semver,pattern={{version}},value=v${{ steps.pkg_version.outputs.VERSION }}

View File

@@ -1,7 +1,15 @@
{
"name": "hianime-api",
"version": "2.1.3",
"version": "2.0.0",
"type": "module",
"repository": {
"type": "git",
"url": "git+https://github.com/ryanwtf7/hianime-api.git"
},
"bugs": {
"url": "https://github.com/ryanwtf7/hianime-api/issues"
},
"homepage": "https://github.com/ryanwtf7/hianime-api#readme",
"scripts": {
"dev": "bun run --hot index.ts",
"start": "bun index.ts",