From c92613b19e6e20bd153c3cdd053196480eaeb87a Mon Sep 17 00:00:00 2001 From: MoeFurina Date: Sat, 30 May 2026 20:58:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0GitHub=20Actions?= =?UTF-8?q?=E5=92=8CDockerfile=E4=B8=AD=E7=9A=84=E4=BE=9D=E8=B5=96?= =?UTF-8?q?=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release-on-version-change.yml | 11 +++++------ Dockerfile | 9 +++------ package.json | 2 +- 3 files changed, 9 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release-on-version-change.yml b/.github/workflows/release-on-version-change.yml index 0c97ba7..13018ee 100644 --- a/.github/workflows/release-on-version-change.yml +++ b/.github/workflows/release-on-version-change.yml @@ -136,7 +136,7 @@ jobs: esac - name: Upload build artifact - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: ${{ matrix.platform }}-binary path: release-artifacts/* @@ -165,17 +165,16 @@ jobs: fetch-tags: true - name: Download build artifacts - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v8 with: path: release-artifacts + merge-multiple: true - - name: Flatten artifacts + - name: List flattened artifacts shell: bash run: | mkdir -p final-artifacts - - find release-artifacts -type f -exec cp {} final-artifacts/ \; - + cp release-artifacts/* final-artifacts/ ls -lah final-artifacts - name: Generate release notes diff --git a/Dockerfile b/Dockerfile index b709e21..115bfa1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,16 +3,13 @@ FROM node:lts-alpine RUN apk add --no-cache tini ENV NODE_ENV production +USER node WORKDIR /app -RUN corepack enable && corepack prepare pnpm@latest --activate +COPY --chown=node:node . ./ -COPY . ./ - -RUN pnpm install --frozen-lockfile - -USER node +RUN yarn --network-timeout=100000 EXPOSE 3000 diff --git a/package.json b/package.json index 94c3df4..1e19314 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@neteasecloudmusicapienhanced/api", - "version": "4.34.2", + "version": "4.34.3", "description": "全网最全的网易云音乐API接口 || A revival project for NeteaseCloudMusicApi Node.js Services (Half Refactor & Enhanced) || 网易云音乐 API 备份 + 增强 || 本项目自原版v4.28.0版本后开始自行维护", "scripts": { "dev": "nodemon app.js",