File tree Expand file tree Collapse file tree 4 files changed +67
-16
lines changed
Expand file tree Collapse file tree 4 files changed +67
-16
lines changed Original file line number Diff line number Diff line change 1+ name-template : ' v$NEXT_MINOR_VERSION'
2+ tag-template : ' v$NEXT_MINOR_VERSION'
3+ change-template : ' - $TITLE @$AUTHOR (#$NUMBER)'
4+ exclude-labels :
5+ - ' skip-changelog'
6+ template : |
7+ ## Changes
8+ $CHANGES
Original file line number Diff line number Diff line change 1+ name : Deploy
2+ on :
3+ release :
4+ types :
5+ - published
6+ jobs :
7+ deploy :
8+ name : Deploy
9+ runs-on : ubuntu-latest
10+ if : ${{ !github.event.release.prerelease && github.event.release.target_commitish == 'main' }}
11+ steps :
12+ - name : Checkout
13+ uses : actions/checkout@v2
14+ - name : Set release version
15+ run : echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
16+ - name : Setup Node
17+ uses : actions/setup-node@v1
18+ with :
19+ node-version : ' 12.x'
20+ registry-url : ' https://registry.npmjs.org'
21+ - name : Build and test npm package
22+ run : |
23+ npm install
24+ npm run build
25+ npm run test --if-present
26+ env :
27+ BW_ACCOUNT_ID : ${{ secrets.BW_ACCOUNT_ID }}
28+ BW_USERNAME : ${{ secrets.BW_USERNAME }}
29+ BW_PASSWORD : ${{ secrets.BW_PASSWORD }}
30+ BW_VOICE_APPLICATION_ID : ${{ secrets.BW_VOICE_APPLICATION_ID }}
31+ BW_MESSAGING_APPLICATION_ID : ${{ secrets.BW_MESSAGING_APPLICATION_ID }}
32+ BW_NUMBER : ${{ secrets.BW_NUMBER }}
33+ USER_NUMBER : ${{ secrets.USER_NUMBER }}
34+ BASE_CALLBACK_URL : ${{ secrets.BASE_CALLBACK_URL }}
35+ - name : Publish npm package
36+ run : |
37+ npm version $RELEASE_VERSION --no-git-tag-version
38+ npm publish --access public
39+ env :
40+ NODE_AUTH_TOKEN : ${{ secrets.NPM_AUTH_TOKEN }}
Original file line number Diff line number Diff line change 1+ name : Create/update draft release
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ jobs :
9+ deploy :
10+ name : deploy
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v2
14+ # Drafts your next Release notes as Pull Requests are merged
15+ - uses : release-drafter/release-drafter@v5
16+ with :
17+ config-name : draft_release.yml
18+ env :
19+ GITHUB_TOKEN : ${{ secrets.BW_GITHUB_TOKEN }}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments