Skip to content

Commit

Permalink
ci: setup pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Apr 17, 2024
1 parent 0719282 commit 716daba
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,17 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup pnpm
run: corepack enable

- name: Set node
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: pnpm

- name: Install
run: pnpm i

- name: Publish package
run: npx jsr publish
15 changes: 15 additions & 0 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup pnpm
run: corepack enable

- name: Set node
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: pnpm

- name: Setup
run: npm i -g @antfu/ni
Expand All @@ -36,10 +41,15 @@ jobs:

steps:
- uses: actions/checkout@v4

- name: Setup pnpm
run: corepack enable

- name: Set node ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: pnpm

- name: Setup
run: npm i -g @antfu/ni
Expand All @@ -58,10 +68,15 @@ jobs:
needs: test
steps:
- uses: actions/checkout@v4

- name: Setup pnpm
run: corepack enable

- name: Set node
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: pnpm

- name: Setup
run: npm i -g @antfu/ni
Expand Down

0 comments on commit 716daba

Please sign in to comment.