Skip to content

Commit c4e7422

Browse files
authored
Fix release-process (#561)
https://github.com/line/line-bot-sdk-nodejs/actions/runs/6687074535/job/18167252413#step:6:35 version is expected to `8.0.1`, but it was `'8.0.1'` ...
1 parent 83ad184 commit c4e7422

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
name: Release Node.js Package
22
on:
33
release:
4-
types: [created]
4+
types: [published]
5+
56
jobs:
67
release-package:
78
runs-on: ubuntu-latest
@@ -17,8 +18,8 @@ jobs:
1718
run: |
1819
VERSION=${{ github.event.release.tag_name }}
1920
VERSION=${VERSION#v}
20-
sed -i "s/__LINE_BOT_SDK_NODEJS_VERSION__/'$VERSION'/g" package.json
21-
sed -i "s/__LINE_BOT_SDK_NODEJS_VERSION__/'$VERSION'/g" package-lock.json
21+
sed -i "s/__LINE_BOT_SDK_NODEJS_VERSION__/$VERSION/g" package.json
22+
sed -i "s/__LINE_BOT_SDK_NODEJS_VERSION__/$VERSION/g" package-lock.json
2223
- run: npm run release
2324
env:
2425
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)