Skip to content

Build & Publish to NPM #39

Build & Publish to NPM

Build & Publish to NPM #39

Workflow file for this run

name: Build & Publish to NPM
on: [workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies and build 馃敡
run: yarn && yarn build
- name: Publish package on NPM 馃摝
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}