-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #176 from ant-media/npm_package_fix
Make npm publish automation on release and fix versioning
- Loading branch information
Showing
1 changed file
with
3 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
name: publish Node.js Package | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build: | ||
|
@@ -27,8 +26,7 @@ jobs: | |
scope: '@ant-media' | ||
- run: yarn install | ||
- run: git config --global user.email "[email protected]" && git config --global user.name "$GITHUB_ACTOR" | ||
- run: yarn version --minor | ||
- run: git push --tags && git push | ||
- run: yarn version --new-version $(echo ${{github.event.release.tag_name}} | cut -d v -f 2) | ||
- run: yarn publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} |