File tree Expand file tree Collapse file tree 2 files changed +30
-38
lines changed
Expand file tree Collapse file tree 2 files changed +30
-38
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11name : NPM publish
22on :
3- workflow_call :
3+ pull_request :
4+ types : [ closed ]
5+ branches : ['develop']
6+
47jobs :
5- build :
8+ version-bump :
9+ name : ' Bump version and commit package.json'
10+ runs-on : ubuntu-latest
11+ environment : production
12+ if : github.event.pull_request.merged == true
13+ steps :
14+ - name : ' Checkout source code'
15+ uses : ' actions/checkout@v4'
16+ with :
17+ token : ${{ secrets.BOT_USER_TOKEN }}
18+ ref : ' develop'
19+
20+ - name : ' Automated Version Bump'
21+ id : version-bump
22+ uses : ' phips28/gh-action-bump-version@master'
23+ env :
24+ GITHUB_TOKEN : ${{ secrets.BOT_USER_TOKEN }}
25+ with :
26+ patch-wording : ' [npm release]'
27+ tag-prefix : ' v'
28+ target-branch : ' develop'
29+
30+ npm-publish :
631 name : ' npm publish'
32+ needs : version-bump
33+ if : startsWith(github.event.pull_request.title, '[npm publish]')
734 runs-on : ubuntu-latest
835 environment : production
936 permissions :
1643 ref : develop
1744
1845 - name : ' Show current version'
19- run : grep '"version"' package.json
46+ run : grep '"version"' package.json
2047
2148 - name : Setup Node.js environment
2249 uses : actions/setup-node@v4
You can’t perform that action at this time.
0 commit comments