mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2025-10-23 07:33:10 +00:00
chore: 再更新
This commit is contained in:
parent
f617b066c9
commit
2b662ae7c7
31
.github/workflows/npm.yml
vendored
31
.github/workflows/npm.yml
vendored
@ -1,21 +1,22 @@
|
|||||||
name: Publish Package to npmjs
|
# .github/workflows/release.yml
|
||||||
|
name: Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
release:
|
push:
|
||||||
types: [published]
|
tags:
|
||||||
|
- 'v*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
id-token: write
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v3
|
||||||
# Setup .npmrc file to publish to npm
|
- uses: actions/setup-node@v3
|
||||||
- uses: actions/setup-node@v4
|
|
||||||
with:
|
with:
|
||||||
node-version: '20.x'
|
node-version: 20
|
||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org/'
|
||||||
- run: npm ci
|
- run: npm install
|
||||||
- run: npm publish --provenance --access public
|
- run: npm run build
|
||||||
|
- run: npm publish --access public
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
Loading…
x
Reference in New Issue
Block a user