Skip to content

Commit

Permalink
ci: 统一使用 pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
oasis-cloud committed Jun 14, 2024
1 parent 4c554e1 commit cfc5be3
Show file tree
Hide file tree
Showing 4 changed files with 11,691 additions and 14,401 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/sync-h5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm i fs-extra --force
- run: node scripts/copy-docs-h5-or-taro.js

- name: Install pnpm
run: corepack enable pnpm

- uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'pnpm'

- name: Install dependencies
run: pnpm install

- name: Generate doc files
run: node scripts/copy-docs-h5-or-taro.js

- name : Sync
uses : JamesIves/[email protected]
with :
Expand Down
17 changes: 15 additions & 2 deletions .github/workflows/sync-migrate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm i fs-extra --force
- run: node scripts/copy-migrate-from-v1.js

- name: Install pnpm
run: corepack enable pnpm

- uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'pnpm'

- name: Install dependencies
run: pnpm install

- name: Copy migrate from v1
run: node scripts/copy-migrate-from-v1.js

- name : Sync
uses : JamesIves/[email protected]
with :
Expand Down
17 changes: 15 additions & 2 deletions .github/workflows/sync-taro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm i fs-extra --force
- run: node scripts/copy-docs-h5-or-taro.js taro

- name: Install pnpm
run: corepack enable pnpm

- uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'pnpm'

- name: Install dependencies
run: pnpm install

- name: Generate doc files
run: node scripts/copy-docs-h5-or-taro.js taro

- name : Sync
uses : JamesIves/[email protected]
with :
Expand Down
Loading

0 comments on commit cfc5be3

Please sign in to comment.