Skip to content

Add publish to NPM (#34) #1

Add publish to NPM (#34)

Add publish to NPM (#34) #1

Workflow file for this run

name: Publish to NPM
on:
push:
branches:
- master
jobs:
build_and_release:
name: Build and release
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
registry-url: "https://registry.npmjs.org"
- name: Install
run: npm ci
- name: Build
run: |
npm run build
- run: npm publish --tag rc
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}