Composite GitHub action that publishes to npm and creates a GitHub release to reduce boilerplate in GitHub workflows.
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