Skip to content

Commit bc61999

Browse files
authored
Merge pull request #68 from kne-union/linzp
修改发布脚本
2 parents 8aaa74c + 89d95a3 commit bc61999

File tree

2 files changed

+6
-17
lines changed

2 files changed

+6
-17
lines changed

.github/workflows/npm-publish.yml

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,8 @@ on:
99
types:
1010
- closed
1111
jobs:
12-
publish-npm:
13-
if: github.event.pull_request.merged == true
14-
runs-on: ubuntu-latest
15-
steps:
16-
- uses: actions/checkout@v3
17-
- uses: actions/setup-node@v3
18-
with:
19-
node-version: 16
20-
registry-url: https://registry.npmjs.org/
21-
- run: npm i --legacy-peer-deps
22-
- run: npm run build:lib
23-
- run: npm publish --access=public
24-
env:
25-
NODE_AUTH_TOKEN: ${{secrets.KNE_PACKAGE_PUBLISH}}
26-
- run: npm i -g cnpm
27-
- run: cnpm sync @kne/modules-dev
12+
build-and-publish-lib:
13+
uses: kne-union/actions/.github/workflows/publish-libs-no-example-workflow.yml@master
14+
secrets: inherit
15+
with:
16+
package_name: '@kne/modules-dev'

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@kne/modules-dev",
3-
"version": "2.0.17",
3+
"version": "2.0.18",
44
"description": "用于辅助在项目内启动一个规范化组件开发的环境",
55
"publishConfig": {
66
"source": "src/index.js",

0 commit comments

Comments
 (0)