mirror of
https://github.com/trycua/computer.git
synced 2026-01-04 04:19:57 -06:00
Update npm-publish-cli.yml
This commit is contained in:
25
.github/workflows/npm-publish-cli.yml
vendored
25
.github/workflows/npm-publish-cli.yml
vendored
@@ -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 }}
|
||||
Reference in New Issue
Block a user