Update npm-publish-cli.yml

This commit is contained in:
Adam
2025-11-15 00:45:01 -05:00
parent 708d48379a
commit b488411256

View File

@@ -4,9 +4,9 @@ on:
workflow_dispatch:
inputs:
version:
description: "Version to publish (default: from package.json)"
description: 'Version to publish (default: from package.json)'
required: false
default: ""
default: ''
jobs:
build-and-publish:
@@ -14,7 +14,7 @@ jobs:
id-token: write
contents: write
packages: write
strategy:
matrix:
include:
@@ -39,13 +39,6 @@ jobs:
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "bun"
cache-dependency-path: "libs/typescript/cua-cli/bun.lockb"
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
@@ -88,14 +81,6 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
registry-url: "https://registry.npmjs.org"
cache: "bun"
cache-dependency-path: "libs/typescript/cua-cli/bun.lockb"
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
@@ -164,7 +149,7 @@ jobs:
```bash
# Using bun
bun add -g @trycua/cli
# Or using npm
npm install -g @trycua/cli
```
@@ -224,4 +209,4 @@ jobs:
asset_name: cua-windows-x64.exe
asset_content_type: application/octet-stream
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}