A Github Action to automatically get version of package.json and publish to npm.
name: Publish NPM-Package
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 10.x
- name: Bump version and push tag
uses: springtype-org/github-tag-action@master
with:
auth_token: ${{ secrets.npm_user }}
github_token: ${{ secrets.GITHUB_TOKEN }}
- auth_token (required) - an generated npm auth-token to your account (required).
- create_tag (optional) - create a tag in git repository default false.
- project_build_dir (optional) - the destination folder for publishing default dist.
- install_build_packages (optional) - install packages before publishing default false.