v0.1.1 #4
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: Publish Package to npmjs | |
on: | |
push: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 14 | |
registry-url: 'https://registry.npmjs.org' | |
- name: Configure git credentials | |
run: | | |
git config user.email "github-actions[bot]@users.noreply.github.com" | |
git config user.name "Github Actions" | |
- run: yarn version --patch | |
- run: yarn | |
- run: yarn publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Commit and push changes | |
run: | | |
git add package.json | |
git commit -m '[Automated commit] Bump version' | |
git push --tags |