Skip to content

Publish package to npmjs #12

Publish package to npmjs

Publish package to npmjs #12

Workflow file for this run

name: Publish package to npmjs
on:
release:
types: [published]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 18
registry-url: "https://registry.npmjs.org"
cache: 'yarn'
- run: yarn
- name: Publish to npm
run: yarn npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}