Skip to content

Publish Package to npm #24

Publish Package to npm

Publish Package to npm #24

Workflow file for this run

name: Publish Package to npm
on:
push:
tags:
- 'v*'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
cache: 'npm'
- run: npm ci
- name: build tokens
run: npm run build:tokens
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.UBIE_NPM_TOKEN }}