mirror of
https://github.com/ryanwtf7/hianime-api.git
synced 2026-04-17 13:31:44 +00:00
fix: explicit lowercasing for ghcr and add repository metadata
This commit is contained in:
6
.github/workflows/package.yml
vendored
6
.github/workflows/package.yml
vendored
@@ -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 }}
|
||||
|
||||
10
package.json
10
package.json
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user