Skip to content

publish-to-npm

publish-to-npm #21

Workflow file for this run

name: publish-to-npm
on:
workflow_dispatch:
release:
types: [ created ]
jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
always-auth: true
- run: yarn
- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}