Skip to content

Commit

Permalink
Merge pull request #176 from ant-media/npm_package_fix
Browse files Browse the repository at this point in the history
Make npm publish automation on release and fix versioning
  • Loading branch information
mekya authored Nov 24, 2021
2 parents 9e79e57 + 4715622 commit a90e5f4
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/release-package.yml
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:
Expand All @@ -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}}

0 comments on commit a90e5f4

Please sign in to comment.