Skip to content

NPM Package publish

NPM Package publish #4

Workflow file for this run

name: NPM Package publish
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: yarn
- run: yarn build
- run: npm publish --registry=https://registry.npmjs.org/ --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_TOKEN}}