File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,6 +2,10 @@ name: Publish Engine
22
33on :
44 workflow_dispatch :
5+ inputs :
6+ publishCommand :
7+ description : ' publish command'
8+ required : true
59
610jobs :
711 publish-engine :
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
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments