ArnaudBarre / npm-publish

Github action to publish to npm and create a GitHub release

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

npm-publish

Composite GitHub action that publishes to npm and creates a GitHub release to reduce boilerplate in GitHub workflows.

Usage

First, add a repository secret named NPM_TOKEN. Use an automation token from your npm account.

steps:
  - uses: actions/checkout@v2
  # install & build if needed
  - uses: ArnaudBarre/npm-publish@v1
    with:
      npm-token: ${{ secrets.NPM_TOKEN }}
      # working-directory: dist

About

Github action to publish to npm and create a GitHub release

License:MIT License