Skip to content

modular approach

modular approach #61

Workflow file for this run

name: "publish package to npm"
on: push
jobs:
publish:
runs-on: self-hosted
if: contains(github.event.head_commit.message, 'npm')
steps:
- name: checkout
uses: actions/checkout@v3
- name: node
uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org
- name: publish
run: |
cd packages/cli
npm publish --access public
env:
NPM_CONFIG_REGISTRY: https://registry.npmjs.org
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}