Skip to content

add cmd to workflow and trigger #4

add cmd to workflow and trigger

add cmd to workflow and trigger #4

name: Publish Components
on:
push:
branches: [portal-ui]
paths:
- 'modules/components/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
node-version: '14.19.0'
registry-url: 'https://npm.pkg.github.com'
- run: npm ci
- run: |
cd modules/components
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}