Skip to content

Commit 7998716

Browse files
authored
fix(cli): remove vulnerable dependencies (#14)
- chore: migrate to pnpm - chore: update dependencies
1 parent 64866c2 commit 7998716

File tree

10 files changed

+3393
-13653
lines changed

10 files changed

+3393
-13653
lines changed

.github/workflows/check.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,29 +12,33 @@ jobs:
1212
steps:
1313
- name: Checkout Git repository
1414
uses: actions/checkout@v3
15+
- name: Setup pnpm
16+
uses: pnpm/action-setup@v2
1517
- name: Setup Node.js
1618
uses: actions/setup-node@v3
1719
with:
1820
node-version: "18"
19-
cache: "npm"
20-
cache-dependency-path: cli/package-lock.json
21+
cache: "pnpm"
22+
cache-dependency-path: cli/pnpm-lock.yaml
2123
- name: 📦 Install dependencies
22-
run: npm ci
24+
run: pnpm install
2325
- name: ⚒️ Build
24-
run: npm run build
26+
run: pnpm build
2527

2628
check_docs:
2729
name: Check docs
2830
runs-on: ubuntu-latest
2931
steps:
3032
- name: Checkout Git repository
3133
uses: actions/checkout@v3
34+
- name: Setup pnpm
35+
uses: pnpm/action-setup@v2
3236
- name: Setup Node.js
3337
uses: actions/setup-node@v3
3438
with:
3539
node-version: "18"
36-
cache: "npm"
40+
cache: "pnpm"
3741
- name: 📦 Install dependencies
38-
run: npm ci
42+
run: pnpm install
3943
- name: ⚒️ Build
40-
run: npm run docs:build
44+
run: pnpm docs:build

.github/workflows/deploy-docs.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,17 @@ jobs:
1313
steps:
1414
- name: Checkout Git repository
1515
uses: actions/checkout@v3
16+
- name: Setup pnpm
17+
uses: pnpm/action-setup@v2
1618
- name: Setup Node
1719
uses: actions/setup-node@v3
1820
with:
1921
node-version: "18"
20-
cache: "npm"
21-
- name: Install node modules
22-
run: npm ci
23-
- name: Build
24-
run: npm run docs:build
22+
cache: "pnpm"
23+
- name: 📦 Install dependencies
24+
run: pnpm install
25+
- name: ⚒️ Build
26+
run: pnpm docs:build
2527
- name: Deploy
2628
uses: appleboy/[email protected]
2729
with:

.github/workflows/release-cli.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,18 @@ jobs:
1818
uses: actions/checkout@v3
1919
with:
2020
fetch-depth: 0
21+
- name: Setup pnpm
22+
uses: pnpm/action-setup@v2
2123
- name: Setup Node
2224
uses: actions/setup-node@v3
2325
with:
2426
node-version: "18"
25-
cache: "npm"
26-
cache-dependency-path: cli/package-lock.json
27-
- name: Install node modules
28-
run: npm ci
27+
cache: "pnpm"
28+
cache-dependency-path: cli/pnpm-lock.yaml
29+
- name: 📦 Install dependencies
30+
run: pnpm install
2931
- name: Release
3032
env:
3133
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3234
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
33-
run: npx semantic-release
35+
run: pnpm semantic-release

0 commit comments

Comments
 (0)