Skip to content

Update npm-publish.yml #18

Update npm-publish.yml

Update npm-publish.yml #18

Workflow file for this run

name: Publish to NPM
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 20
registry-url: https://registry.npmjs.org/
always-auth: true
- run: yarn install
- name: Publish package on NPM 📦
run: yarn publish --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}