Update readme.md #5
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
# this script will push to npm on push to master branch | |
name: Publish to NPM | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 14 | |
- run: npm ci | |
- run: npm test | |
- name: Configure Git | |
run: | | |
git config --global user.email "bemijonathan@gmail.com" | |
git config --global user.name "Jonathan Atiene" | |
- name: Bump version | |
run: npm version patch -m "Bump version to %s" | |
- uses: JS-DevTools/npm-publish@v1 | |
with: | |
token: ${{ secrets.NPM_TOKEN }} |