File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,11 @@ name: Release Node.js Package
22on :
33 release :
44 types : [published]
5+ workflow_dispatch :
6+ inputs :
7+ version :
8+ description : ' The version to release'
9+ required : true
510
611jobs :
712 release-package :
1621 - run : npm install
1722 - name : Update version in package.json, package-lock.json, and lib/version.ts
1823 run : |
19- VERSION=${{ github.event.release.tag_name }}
24+ if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
25+ VERSION=${{ github.event.inputs.version }}
26+ else
27+ VERSION=${{ github.event.release.tag_name }}
28+ fi
2029 VERSION=${VERSION#v}
2130 sed -i "s/__LINE_BOT_SDK_NODEJS_VERSION__/$VERSION/g" package.json
2231 sed -i "s/__LINE_BOT_SDK_NODEJS_VERSION__/$VERSION/g" package-lock.json
You can’t perform that action at this time.
0 commit comments