Update README.md #46
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
name: test | |
on: | |
push: | |
branches: [ "master" ] | |
workflow_dispatch: | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: install dependencies | |
run: yarn | |
- name: publish | |
env: | |
NPM_PUBLISH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} | |
run: | | |
yarn build | |
echo "//registry.yarnpkg.com/:_authToken=$NPM_PUBLISH_TOKEN" >>~/.npmrc | |
yarn start:publish patch | |
- name: Commit new version | |
run: | | |
git config --global user.name 'Github action' | |
git config --global user.email '[email protected]' | |
git add ./package.json | |
git commit -m "Github Action: Version increment" | |
git push |