File tree Expand file tree Collapse file tree 2 files changed +55
-0
lines changed Expand file tree Collapse file tree 2 files changed +55
-0
lines changed Original file line number Diff line number Diff line change 1+ name : on-push-publish-to-npm
2+ on :
3+ push :
4+ branches :
5+ - master
6+ paths :
7+ - " package.json"
8+ jobs :
9+ publish :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v2
13+ - uses : actions/setup-node@v1
14+ with :
15+ node-version : 10
16+ - run : yarn install
17+ - uses : JS-DevTools/npm-publish@v1
18+ with :
19+ token : ${{ secrets.ADOBE_BOT_NPM_TOKEN }}
Original file line number Diff line number Diff line change 1+ name : version-bump-publish
2+ on :
3+ workflow_dispatch :
4+ inputs :
5+ level :
6+ description : " <newversion> | major | minor | patch | premajor | preminor | prepatch | prerelease"
7+ required : true
8+ default : " patch"
9+ tag :
10+ description : " The tag to publish to."
11+ required : false
12+ default : " latest"
13+ jobs :
14+ checkout :
15+ name : checkout
16+ runs-on : ubuntu-latest
17+ steps :
18+ - uses : actions/checkout@v2
19+ - run : |
20+ git config user.name github-actions
21+ git config user.email github-actions@github.com
22+ - uses : actions/setup-node@v1
23+ with :
24+ node-version : 10
25+ - run : |
26+ yarn install
27+ - name : bump and pub
28+ if : ${{ github.event.inputs.level != '' }}
29+ run : |
30+ yarn version --${{ github.event.inputs.level }}
31+ git push
32+ - uses : JS-DevTools/npm-publish@v1
33+ with :
34+ token : ${{ secrets.ADOBE_BOT_NPM_TOKEN }}
35+ tag : ${{ github.event.inputs.tag }}
36+ access : " public"
You can’t perform that action at this time.
0 commit comments