@sansenjian/qq-music-api 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
name: Publish to NPM
|
|
1
|
+
name: Publish to NPM and GitHub Packages
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
release:
|
|
5
5
|
types: [published]
|
|
6
6
|
|
|
7
7
|
jobs:
|
|
8
|
-
|
|
8
|
+
# 发布到 npm
|
|
9
|
+
publish-npm:
|
|
9
10
|
runs-on: ubuntu-latest
|
|
10
11
|
steps:
|
|
11
12
|
- name: Checkout
|
|
@@ -24,3 +25,23 @@ jobs:
|
|
|
24
25
|
run: npm publish --access public
|
|
25
26
|
env:
|
|
26
27
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
28
|
+
|
|
29
|
+
# 发布到 GitHub Packages
|
|
30
|
+
publish-github:
|
|
31
|
+
runs-on: ubuntu-latest
|
|
32
|
+
permissions:
|
|
33
|
+
contents: read
|
|
34
|
+
packages: write
|
|
35
|
+
steps:
|
|
36
|
+
- uses: actions/checkout@v4
|
|
37
|
+
|
|
38
|
+
- uses: actions/setup-node@v4
|
|
39
|
+
with:
|
|
40
|
+
node-version: '20'
|
|
41
|
+
registry-url: 'https://npm.pkg.github.com'
|
|
42
|
+
|
|
43
|
+
- run: npm install
|
|
44
|
+
|
|
45
|
+
- run: npm publish
|
|
46
|
+
env:
|
|
47
|
+
NODE_AUTH_TOKEN: ${{ github.token }}
|