Skip to content

Update npm-publish.yml #16

Update npm-publish.yml

Update npm-publish.yml #16

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: npm publish --access=public
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}