Skip to content

Publish to Github NPM Repository #70

Publish to Github NPM Repository

Publish to Github NPM Repository #70

Workflow file for this run

name: Publish to Github NPM Repository
# https://sergiodxa.com/articles/github-actions-npm-publish/
# https://help.github.com/en/actions/language-and-framework-guides/publishing-nodejs-packages
on:
create:
tags:
- v*
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://npm.pkg.github.com/
- run: npm install
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}