Skip to content

Commit

Permalink
ci: use pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Mar 31, 2022
1 parent e4858f9 commit ed3b927
Show file tree
Hide file tree
Showing 8 changed files with 6,267 additions and 8,723 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,22 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2.2.1
with:
version: 6.32.1
- uses: actions/setup-node@v2
with:
node-version: '16'
cache: 'yarn'
cache: 'pnpm'

- run: yarn install --frozen-lockfile
- run: yarn lerna bootstrap
- run: yarn run lint
- run: yarn run test:types
- run: yarn run test:jest
- run: yarn run build
- run: yarn lerna run build:dts
- run: yarn run test:dts
- run: yarn run size
- run: pnpm install
- run: pnpm run lint
- run: pnpm run test:types
- run: pnpm run test:jest
- run: pnpm run build
- run: pnpm run build:dts
- run: pnpm run test:dts
- run: pnpm run size

- uses: codecov/codecov-action@v2
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
shamefully-hoist=true
19 changes: 9 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@
],
"scripts": {
"release": "node scripts/release.mjs",
"size": "lerna run size",
"build": "lerna run build",
"docs:build": "lerna run docs:build --scope @pinia/docs",
"play": "lerna run play",
"build:dts": "lerna run build:dts --parallel",
"size": "pnpm run -r size",
"build": "pnpm run -r build",
"docs:build": "pnpm run -r docs:build --filter ./packages/docs",
"play": "pnpm run -r play",
"build:dts": "pnpm run -r build:dts --parallel",
"lint": "prettier -c --parser typescript \"packages/*/{src,__tests__,e2e}/**/*.[jt]s?(x)\"",
"lint:fix": "yarn run lint --write",
"test": "yarn run test:types && yarn run test:jest && lerna run test && yarn run build && yarn run build:dts && yarn test:dts",
"lint:fix": "pnpm run lint --write",
"test": "pnpm run test:types && pnpm run test:jest && pnpm run -r test && pnpm run build && pnpm run build:dts && pnpm test:dts",
"test:jest": "jest --coverage",
"test:types": "tsc --build ./tsconfig.json",
"test:dts": "lerna run test:dts",
"docs:api": "lerna run docs:api --scope @pinia/docs"
"test:dts": "pnpm run -r test:dts",
"docs:api": "pnpm run -r docs:api --filter ./packages/docs"
},
"devDependencies": {
"@rollup/plugin-alias": "^3.1.8",
Expand All @@ -36,7 +36,6 @@
"globby": "^12.0.2",
"jest": "^27.4.4",
"jest-mock-warn": "^1.1.0",
"lerna": "^4.0.0",
"lint-staged": "^12.1.2",
"lodash.kebabcase": "^4.1.1",
"minimist": "^1.2.5",
Expand Down
10 changes: 0 additions & 10 deletions packages/test-vue-2/package.json

This file was deleted.

Loading

0 comments on commit ed3b927

Please sign in to comment.