Skip to content

Workflow file for this run

name: Publish NPM Package
on:
push:
paths-ignore:
- 'docs/**'
branches:
- main
- fix-gh-action
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 16
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: yarn install
- name: Build
run: yarn build
- name: Publish to NPM
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}