Skip to content

Publish Package

Publish Package #10

name: Publish Package
on:
workflow_dispatch:
inputs:
publish:
description: 'Trigger package publication'
jobs:
publish:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18'
- name: Install dependencies
run: cd cli && npm ci
- name: Publish to GitHub Package Registry
run: npm publish --registry=https://npm.pkg.github.com/
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}