Skip to content

Commit

Permalink
workflow(GitHub Actions): cnpm: command not found
Browse files Browse the repository at this point in the history
  • Loading branch information
cloydlau committed Oct 11, 2024
1 parent 0ebda26 commit c7654d5
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,9 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- run: cnpm sync
if: success()

- run: curl -L https://npmmirror.com/sync/json-editor-vue
if: success()

- run: npx changelogithub
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- run: pnpm sync-to-cnpm
if: success()
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
"typegen": "npx tsup --entry.json-editor-vue src/index.ts --format esm,cjs --cjsInterop --clean --dts-only",
"check-exports": "pnpm build && npx attw $(npm pack)",
"release": "esno ./scripts/release.mts",
"sync-to-cnpm": "npx cnpm sync && curl -L https://npmmirror.com/sync/json-editor-vue",
"license-scan": "license-checker --summary --out ./dependency-licenses.txt",
"lint": "eslint \"**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx,vue,json,md,html,css,scss,sass}\" --ignore-pattern stats.html",
"lint:fix": "eslint \"**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx,vue,json,md,html,css,scss,sass}\" --ignore-pattern stats.html --fix",
Expand Down Expand Up @@ -105,6 +106,7 @@
"@vue/test-utils": "latest",
"axios": "^1.7.7",
"case-police": "^0.7.0",
"cnpm": "^9.4.0",
"cross-spawn": "^7.0.3",
"del": "^8.0.0",
"destr": "^2.0.3",
Expand Down
22 changes: 22 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c7654d5

Please sign in to comment.