Skip to content

Publish Package to NPM #1

Publish Package to NPM

Publish Package to NPM #1

Workflow file for this run

name: Publish Package to NPM
on:
release:
types: [published]
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- run: npm install
- name: Publish package
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_ACCESS_TOKEN }}