GeezerVison is showing github.com — chore: add pub:minor and pub:major commands · Devancn/lowcode-engine@d957be8
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/publish engine.yml +5-1Lines changed: 5 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -2,6 +2,10 @@ name: Publish Engine |
2 | 2 |
|
3 | 3 | on: |
4 | 4 | workflow_dispatch: |
| 5 | + inputs: |
| 6 | + publishCommand: |
| 7 | + description: 'publish command' |
| 8 | + required: true |
5 | 9 |
|
6 | 10 | jobs: |
7 | 11 | publish-engine: |
|
21 | 25 | npm run build |
22 | 26 | |
23 | 27 | git config --local user.name "GitHub Action" |
24 | | - - run: npm run pub |
| 28 | + - run: npm run ${{ github.event.inputs.publishCommand }} |
25 | 29 | env: |
26 | 30 | NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
27 | 31 | - name: Get version |
|
Collapse file
Copy file name to clipboardExpand all lines: package.json +2Lines changed: 2 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
21 | 21 | "lint:modules": "f2elint scan -q -i ./modules/*/src", |
22 | 22 | "lint:modules:fix": "f2elint fix -i ./modules/*/src", |
23 | 23 | "pub": "npm run watchdog:build && lerna publish patch --yes --force-publish --exact --no-changelog", |
| 24 | + "pub:minor": "npm run watchdog:build && lerna publish minor --yes --force-publish --exact --no-changelog", |
| 25 | + "pub:major": "npm run watchdog:build && lerna publish major --yes --force-publish --exact --no-changelog", |
24 | 26 | "pub:premajor": "npm run watchdog:build && lerna publish premajor --force-publish --exact --dist-tag beta --preid beta --no-changelog", |
25 | 27 | "pub:preminor": "npm run watchdog:build && lerna publish preminor --force-publish --exact --dist-tag beta --preid beta --no-changelog", |
26 | 28 | "pub:prepatch": "npm run watchdog:build && lerna publish prepatch --force-publish --exact --dist-tag beta --preid beta --no-changelog", |
|