add release it for automated github releases and npm publish

This commit is contained in:
Arthur Vivian
2021-06-28 12:59:26 +01:00
parent ae1db331d9
commit 91523a3786
6 changed files with 1611 additions and 37 deletions

View File

@@ -23,7 +23,13 @@ jobs:
run: npm test
- name: Build
run: npm build
- name: Publish
- name: Git config
run: |
git config --local user.email 'hello@rive.app'
git config --local user.name ${{ github.actor }}
- name: Authenticate with registry
run: npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
- name: Release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm run publish
GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }}
run: npm run release