docs: 纠正文档

This commit is contained in:
ImFurina
2025-08-26 17:37:44 +08:00
parent 79edb14a03
commit 442d0a8f81
4 changed files with 28 additions and 27 deletions
@@ -1,23 +0,0 @@
name: Update Docker Hub Description
on:
push:
branches:
- main
paths:
- README.MD
- .github/workflows/DockerHub-Description.yml
jobs:
dockerHubDescription:
if: startsWith(github.repository, 'Binaryify/ncm')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Docker Hub Description
uses: peter-evans/dockerhub-description@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: binaryify/netease_cloud_music_api
short-description: ${{ github.event.repository.description }}
readme-filepath: ./README.MD
+26 -2
View File
@@ -3,17 +3,41 @@ name: Release
on:
push:
tags:
- 'v*'
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
# 发布到 NPM Registry
- name: Setup Node.js for NPM
uses: actions/setup-node@v3
with:
node-version: 20
registry-url: 'https://registry.npmjs.org/'
- run: npm install
- run: npm publish --access public
- name: Publish to NPM
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# 发布到 GitHub Packages
- name: Setup Node.js for GitHub Packages
uses: actions/setup-node@v3
with:
node-version: 20
registry-url: 'https://npm.pkg.github.com'
- name: Update package name for GitHub Packages
run: |
json=`cat package.json`
echo "$json" | jq '.name = "@neteasecloudmusicapienhanced/api"' > package.json
- name: Publish to GitHub Packages
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ github.token }}