@stvy/fund-indicators 1.0.2 → 1.0.5
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.yml +4 -10
- package/dist/index.cjs +5437 -38
- package/dist/index.mjs +5402 -3
- package/package.json +7 -5
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
# Publish — 自动发布到 npm
|
|
2
|
-
# 当在 GitHub 上创建新的 Release 时自动触发
|
|
3
|
-
#
|
|
4
|
-
# 前置配置:
|
|
5
|
-
# 1. 在 npm 上生成一个 Automation Token(Settings → Access Tokens → Generate New Token → Automation)
|
|
6
|
-
# 2. 在 GitHub 仓库中添加 Secret:Settings → Secrets and variables → Actions → New repository secret
|
|
7
|
-
# - Name: NPM_TOKEN
|
|
8
|
-
# - Value: 你生成的 npm Automation Token
|
|
9
|
-
|
|
10
1
|
name: Publish to npm
|
|
11
2
|
|
|
12
3
|
on:
|
|
@@ -54,6 +45,9 @@ jobs:
|
|
|
54
45
|
test -f dist/index.d.cts || (echo "Missing dist/index.d.cts" && exit 1)
|
|
55
46
|
echo "All build artifacts verified."
|
|
56
47
|
|
|
48
|
+
- name: Update package version from release tag
|
|
49
|
+
uses: BellCubeDev/update-package-version-by-release-tag@v2
|
|
50
|
+
|
|
57
51
|
- name: Verify version matches release tag
|
|
58
52
|
run: |
|
|
59
53
|
PKG_VERSION=$(node -p "require('./package.json').version")
|
|
@@ -76,4 +70,4 @@ jobs:
|
|
|
76
70
|
echo "" >> $GITHUB_STEP_SUMMARY
|
|
77
71
|
echo "- Package: \`@stvy/fund-indicators@${GITHUB_REF_NAME#v}\`" >> $GITHUB_STEP_SUMMARY
|
|
78
72
|
echo "- Registry: https://www.npmjs.com/package/@stvy/fund-indicators" >> $GITHUB_STEP_SUMMARY
|
|
79
|
-
echo "- Includes browser bundles
|
|
73
|
+
echo "- Includes browser bundles ESM" >> $GITHUB_STEP_SUMMARY
|