node-easywechat 3.7.11 → 3.7.13
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.
- package/.github/workflows/publish-npm-3.yml +24 -0
- package/CHANGELOG.md +8 -0
- package/package.json +9 -9
|
@@ -11,6 +11,7 @@ jobs:
|
|
|
11
11
|
publish-npm:
|
|
12
12
|
runs-on: ubuntu-latest
|
|
13
13
|
permissions:
|
|
14
|
+
contents: write
|
|
14
15
|
id-token: write
|
|
15
16
|
steps:
|
|
16
17
|
- uses: actions/checkout@v4
|
|
@@ -26,3 +27,26 @@ jobs:
|
|
|
26
27
|
- run: npm publish --tag latest --provenance --access public
|
|
27
28
|
env:
|
|
28
29
|
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
|
|
30
|
+
- name: Generate release notes
|
|
31
|
+
run: |
|
|
32
|
+
tag="${GITHUB_REF_NAME}"
|
|
33
|
+
awk -v tag="$tag" '
|
|
34
|
+
$1 == "##" && $2 == tag { found = 1; next }
|
|
35
|
+
found && /^## / { exit }
|
|
36
|
+
found && !emitted && $0 == "" { next }
|
|
37
|
+
found { emitted = 1; print }
|
|
38
|
+
' CHANGELOG.md > release-notes.md
|
|
39
|
+
|
|
40
|
+
if [ ! -s release-notes.md ]; then
|
|
41
|
+
echo "No changelog entry found for ${tag}" > release-notes.md
|
|
42
|
+
fi
|
|
43
|
+
- name: Publish GitHub release
|
|
44
|
+
run: |
|
|
45
|
+
tag="${GITHUB_REF_NAME}"
|
|
46
|
+
if gh release view "$tag" > /dev/null 2>&1; then
|
|
47
|
+
gh release edit "$tag" --title "$tag" --notes-file release-notes.md
|
|
48
|
+
else
|
|
49
|
+
gh release create "$tag" --title "$tag" --notes-file release-notes.md
|
|
50
|
+
fi
|
|
51
|
+
env:
|
|
52
|
+
GH_TOKEN: ${{ github.token }}
|
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-easywechat",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.13",
|
|
4
4
|
"description": "EasyWechat SDK for Node.js (NOT OFFICIAL)",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -22,20 +22,20 @@
|
|
|
22
22
|
"node": ">=15.6.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@types/node": "^20.19.
|
|
25
|
+
"@types/node": "^20.19.40",
|
|
26
26
|
"axios-mock-adapter": "^1.22.0",
|
|
27
|
-
"mocha": "^11.7.
|
|
27
|
+
"mocha": "^11.7.5",
|
|
28
28
|
"package-release": "^1.0.4",
|
|
29
|
-
"typescript": "^5.9.
|
|
29
|
+
"typescript": "^5.9.3"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"axios": "^1.
|
|
32
|
+
"axios": "^1.16.0",
|
|
33
33
|
"axios-retry": "^4.5.0",
|
|
34
|
-
"form-data": "^4.0.
|
|
34
|
+
"form-data": "^4.0.5",
|
|
35
35
|
"merge": "^2.1.1",
|
|
36
|
-
"node-socialite": "^1.5.
|
|
37
|
-
"qs": "^6.
|
|
38
|
-
"raw-body": "^2.5.
|
|
36
|
+
"node-socialite": "^1.5.4",
|
|
37
|
+
"qs": "^6.15.1",
|
|
38
|
+
"raw-body": "^2.5.3",
|
|
39
39
|
"xml2js": "^0.6.2"
|
|
40
40
|
}
|
|
41
41
|
}
|