Skip to content

Commit c7654d5

Browse files
committed
workflow(GitHub Actions): cnpm: command not found
1 parent 0ebda26 commit c7654d5

File tree

3 files changed

+27
-6
lines changed

3 files changed

+27
-6
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,9 @@ jobs:
3232
env:
3333
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3434

35-
- run: cnpm sync
36-
if: success()
37-
38-
- run: curl -L https://npmmirror.com/sync/json-editor-vue
39-
if: success()
40-
4135
- run: npx changelogithub
4236
env:
4337
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
39+
- run: pnpm sync-to-cnpm
40+
if: success()

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
"typegen": "npx tsup --entry.json-editor-vue src/index.ts --format esm,cjs --cjsInterop --clean --dts-only",
7171
"check-exports": "pnpm build && npx attw $(npm pack)",
7272
"release": "esno ./scripts/release.mts",
73+
"sync-to-cnpm": "npx cnpm sync && curl -L https://npmmirror.com/sync/json-editor-vue",
7374
"license-scan": "license-checker --summary --out ./dependency-licenses.txt",
7475
"lint": "eslint \"**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx,vue,json,md,html,css,scss,sass}\" --ignore-pattern stats.html",
7576
"lint:fix": "eslint \"**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx,vue,json,md,html,css,scss,sass}\" --ignore-pattern stats.html --fix",
@@ -105,6 +106,7 @@
105106
"@vue/test-utils": "latest",
106107
"axios": "^1.7.7",
107108
"case-police": "^0.7.0",
109+
"cnpm": "^9.4.0",
108110
"cross-spawn": "^7.0.3",
109111
"del": "^8.0.0",
110112
"destr": "^2.0.3",

pnpm-lock.yaml

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)