Skip to content

Publish to NPM

Publish to NPM #20

Workflow file for this run

name: Publish to NPM
on:
workflow_dispatch:
inputs:
component:
description: 'Component'
required: true
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- run: |
npm i
npm link
luna install
luna build ${{ github.event.inputs.component }}
- working-directory: dist
run: |
cd ${{ github.event.inputs.component }}
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}