Skip to content

Commit

Permalink
chore(ci): Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rajdip-b committed Jan 8, 2025
1 parent 3d45a4c commit c7f05a0
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/deploy-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,35 @@ on:
paths: ['apps/cli/**', '.github/workflows/deploy-cli.yml', 'package.json']

jobs:
build:
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'

- 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
- run: cd apps/cli && npm publish --provenance --access public

- name: Publish
run: cd apps/cli && npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit c7f05a0

Please sign in to comment.