Skip to content

Commit

Permalink
Fix release-process (#561)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yang-33 authored Oct 30, 2023
1 parent 83ad184 commit c4e7422
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: Release Node.js Package
on:
release:
types: [created]
types: [published]

jobs:
release-package:
runs-on: ubuntu-latest
Expand All @@ -17,8 +18,8 @@ jobs:
run: |
VERSION=${{ github.event.release.tag_name }}
VERSION=${VERSION#v}
sed -i "s/__LINE_BOT_SDK_NODEJS_VERSION__/'$VERSION'/g" package.json
sed -i "s/__LINE_BOT_SDK_NODEJS_VERSION__/'$VERSION'/g" package-lock.json
sed -i "s/__LINE_BOT_SDK_NODEJS_VERSION__/$VERSION/g" package.json
sed -i "s/__LINE_BOT_SDK_NODEJS_VERSION__/$VERSION/g" package-lock.json
- run: npm run release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down

0 comments on commit c4e7422

Please sign in to comment.