Skip to content

Commit d957be8

Browse files
committed
chore: add pub:minor and pub:major commands
1 parent d1a8bac commit d957be8

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/publish engine.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: Publish Engine
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
publishCommand:
7+
description: 'publish command'
8+
required: true
59

610
jobs:
711
publish-engine:
@@ -21,7 +25,7 @@ jobs:
2125
npm run build
2226
git config --local user.email "action@github.com"
2327
git config --local user.name "GitHub Action"
24-
- run: npm run pub
28+
- run: npm run ${{ github.event.inputs.publishCommand }}
2529
env:
2630
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2731
- name: Get version

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
"lint:modules": "f2elint scan -q -i ./modules/*/src",
2222
"lint:modules:fix": "f2elint fix -i ./modules/*/src",
2323
"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",
2426
"pub:premajor": "npm run watchdog:build && lerna publish premajor --force-publish --exact --dist-tag beta --preid beta --no-changelog",
2527
"pub:preminor": "npm run watchdog:build && lerna publish preminor --force-publish --exact --dist-tag beta --preid beta --no-changelog",
2628
"pub:prepatch": "npm run watchdog:build && lerna publish prepatch --force-publish --exact --dist-tag beta --preid beta --no-changelog",

0 commit comments

Comments
 (0)