Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Commit

Permalink
chore: 完善说明及更新 Node.js 版本
Browse files Browse the repository at this point in the history
  • Loading branch information
iugo committed Jan 29, 2024
1 parent 0f8cf40 commit dff8731
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
- run: npm ci
- run: npm test

Expand All @@ -33,7 +33,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
registry-url: https://npm.pkg.github.com/
- run: npm ci
- run: npm run build
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ publish:
npm run tsc && cp package*.json build && cp README.md build && npm publish ./build --access public
```

## 更新版本
## 更新版本 / 发版

通过 `npm version` 在代码层面更新版本.
1. 通过 `npm version` 在代码层面更新版本.
2. 上述操作后, 会在 Git 创建一个分支, 需要 push.
3. 一旦 push, 会在 GitHub 触发 CI, 自动发布新版本.

0 comments on commit dff8731

Please sign in to comment.