Skip to content

Node.js Package

Node.js Package #125

Workflow file for this run

name: Node.js Package
on:
workflow_dispatch:
inputs:
typeLibrary:
description: 'Which library do you want to deploy ? (ui/sections)'
required: true
default: 'ui'
jobs:
build-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '12.x'
registry-url: 'https://registry.npmjs.org'
- run: yarn
- run: yarn build-${{ github.event.inputs.typeLibrary }}-library
- run: yarn publish-${{ github.event.inputs.typeLibrary }}-library $NODE_AUTH_TOKEN
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}