Migrate form yarn to pnpm
This commit is contained in:
15
.github/workflows/build.yml
vendored
15
.github/workflows/build.yml
vendored
@@ -13,20 +13,25 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
|
||||
- uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: latest
|
||||
|
||||
- uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: 20
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: "yarn install"
|
||||
run: yarn install
|
||||
- name: "pnpm install"
|
||||
run: pnpm install
|
||||
|
||||
- name: "yarn build"
|
||||
run: yarn build
|
||||
- name: "pnpm build"
|
||||
run: pnpm build
|
||||
|
||||
- name: "check for uncommitted changes"
|
||||
# Ensure no changes, but ignore node_modules dir since dev/fresh ci deps installed.
|
||||
run: |
|
||||
git diff --exit-code --stat -- . ':!node_modules' \
|
||||
|| (echo "##[error] found changed files after build. please 'yarn build && npm run format'" \
|
||||
|| (echo "##[error] found changed files after build. please 'pnpm build && pnpm run format'" \
|
||||
"and check in all changes" \
|
||||
&& exit 1)
|
||||
|
||||
13
.github/workflows/test.yml
vendored
13
.github/workflows/test.yml
vendored
@@ -7,12 +7,17 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
|
||||
- uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: latest
|
||||
|
||||
- uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: 20
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: "yarn install"
|
||||
run: yarn install
|
||||
- name: "pnpm install"
|
||||
run: pnpm install
|
||||
|
||||
- name: "yarn test"
|
||||
run: yarn test
|
||||
- name: "pnpm test"
|
||||
run: pnpm test
|
||||
Reference in New Issue
Block a user