Skip to content

Publish Package

Publish Package #6

name: NPM Publication On GitHub Packages
on:
workflow_dispatch:
inputs:
publish:
description: 'Trigger package publication'
jobs:
publish-gpr:
if: github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
registry-url: https://npm.pkg.github.com/
- run: cd ./cli && npm ci && npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}