Skip to content

Commit 93df7d5

Browse files
committed
ci(fix): 修下 npm 包发布
1 parent 4d62291 commit 93df7d5

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/release-npm.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,24 @@ jobs:
6565
- name: Install dependencies
6666
run: pnpm install --frozen-lockfile
6767

68+
- name: Update package versions from tag
69+
run: |
70+
ver=${{ github.ref_name }}
71+
ver=${ver#v}
72+
echo "Setting package version to ${ver}"
73+
74+
packages=(
75+
"packages/maa-log-kernel"
76+
"packages/maa-log-parser"
77+
"packages/maa-log-runtime"
78+
"packages/maa-log-adapter"
79+
"packages/maa-log-tools"
80+
)
81+
82+
for pkg_dir in "${packages[@]}"; do
83+
npm --prefix "${pkg_dir}" pkg set version="${ver}"
84+
done
85+
6886
- name: Build packages
6987
run: pnpm build:packages
7088

0 commit comments

Comments
 (0)