Skip to content

Commit d64f741

Browse files
committed
fix: 优化 actions 36
1 parent ae10697 commit d64f741

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/actions/npm-publish/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ runs:
4141
// @ref https://github.com/actions/toolkit/blob/457303960f03375db6f033e214b9f90d79c3fe5c/packages/github/src/context.ts
4242
pkg.name = context.payload.repository.owner.login + '/' + underlineName;
4343
const fs = require('fs');
44-
fs.writeFileSync('package.json', JSON.stringify(pkg));
44+
fs.writeFileSync('package.json', JSON.stringify(pkg), 'utf8');
4545
4646
- name: 发布
4747
shell: bash

0 commit comments

Comments
 (0)