From bb84af09a3e75026cf329c55756d20eae4782480 Mon Sep 17 00:00:00 2001 From: mmilanez Date: Wed, 17 Jun 2026 14:58:36 -0400 Subject: [PATCH] ci: add GitHub Actions workflow to publish CLI to npm on release --- .github/workflows/publish-cli.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/publish-cli.yml diff --git a/.github/workflows/publish-cli.yml b/.github/workflows/publish-cli.yml new file mode 100644 index 0000000..288c63d --- /dev/null +++ b/.github/workflows/publish-cli.yml @@ -0,0 +1,30 @@ +name: Publish CLI to npm + +on: + release: + types: [published] + +permissions: + contents: read + +jobs: + publish: + name: npm publish + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: '20' + registry-url: 'https://registry.npmjs.org' + + - name: Install dependencies + run: npm ci + working-directory: cli + + - name: Publish + run: npm publish --access public + working-directory: cli + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}