Skip to content

Publish NPM Package #86

Publish NPM Package

Publish NPM Package #86

Workflow file for this run

on:
release:
types:
- created
name: Publish NPM Package
jobs:
publish:
name: Publish to npm
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- run: |
npm install
npm run build --if-present
npm test
npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}