Skip to content

chore(cli): Update package name #8

chore(cli): Update package name

chore(cli): Update package name #8

Workflow file for this run

name: Deploy CLI
on:
workflow_dispatch:
push:
branches:
- main
- develop
paths: ['apps/cli/**', '.github/workflows/deploy-cli.yml', 'package.json']
jobs:
publish:
name: Publish CLI
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
scope: '@keyshade'
- name: Install pnpm
run: npm i -g pnpm
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm build:cli
- name: Authenticate with npm
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
- name: Publish
run: cd apps/cli && npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}