Skip to content

Commit b421590

Browse files
committed
feat(GitHub Actions): 优化发布工作流,合并进入包目录的步骤
- 将进入 packages/simple-notation 目录的步骤合并到 npm 发布命令中,简化工作流配置,确保发布过程中的路径正确性。
1 parent aa3320a commit b421590

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,9 @@ jobs:
3131
- name: Build project
3232
run: pnpm build:lib
3333

34-
- name: Into package directory
35-
run: cd packages/simple-notation
36-
3734
- name: Publish to npmjs
38-
run: npm publish --provenance --access public
35+
run: |
36+
cd packages/simple-notation
37+
npm publish --provenance --access public
3938
env:
4039
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)