Skip to content

Commit

Permalink
chore(ci): fix corepack key id mismatch (#13341)
Browse files Browse the repository at this point in the history
  • Loading branch information
inottn authored Feb 8, 2025
1 parent fd87eba commit 6f507b9
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 39 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/deploy-v4-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ jobs:
ref: 'main'

- name: Install pnpm
run: corepack enable
run: |
npm install -g corepack@latest --force
corepack enable
- uses: actions/setup-node@v4
with:
Expand Down
82 changes: 44 additions & 38 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,62 +15,68 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4

- name: Install pnpm
run: corepack enable
- name: Install pnpm
run: |
npm install -g corepack@latest --force
corepack enable
- uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'pnpm'
- uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'pnpm'

- name: Install dependencies
run: pnpm install
- name: Install dependencies
run: pnpm install

- name: Run linter
run: npm run lint
- name: Run linter
run: npm run lint

test:
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4

- name: Install pnpm
run: corepack enable
- name: Install pnpm
run: |
npm install -g corepack@latest --force
corepack enable
- uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'pnpm'
- uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'pnpm'

- name: Install dependencies
run: pnpm install
- name: Install dependencies
run: pnpm install

- name: Run test cases
run: pnpm run test:coverage
- name: Run test cases
run: pnpm run test:coverage

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./packages/vant/test/coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./packages/vant/test/coverage

build:
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4

- name: Install pnpm
run: corepack enable
- name: Install pnpm
run: |
npm install -g corepack@latest --force
corepack enable
- uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'pnpm'
- uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'pnpm'

- name: Install dependencies
run: pnpm install
- name: Install dependencies
run: pnpm install

- name: Build
run: npm run build
- name: Build
run: npm run build

0 comments on commit 6f507b9

Please sign in to comment.